Browse Source

fix compatible for centos5 nc-1.84-10. `-p` is not necessary for all the tested platforms. so, remove it.

neil 9 years ago
parent
commit
6389e87fd3
1 changed files with 2 additions and 2 deletions
  1. 2 2
      le.sh

+ 2 - 2
le.sh

@@ -345,9 +345,9 @@ _startserver() {
   fi
 #  while true ; do
     if [ "$DEBUG" ] ; then
-      echo -e -n "HTTP/1.1 200 OK\r\n\r\n$content" | $_NC -l -p $Le_HTTPPort -vv
+      echo -e -n "HTTP/1.1 200 OK\r\n\r\n$content" | $_NC -l $Le_HTTPPort -vv
     else
-      echo -e -n "HTTP/1.1 200 OK\r\n\r\n$content" | $_NC -l -p $Le_HTTPPort > /dev/null
+      echo -e -n "HTTP/1.1 200 OK\r\n\r\n$content" | $_NC -l $Le_HTTPPort > /dev/null
     fi
 #  done
 }