Commit 6389e87f authored by neil's avatar neil
Browse files

fix compatible for centos5 nc-1.84-10. `-p` is not necessary for all the...

fix compatible for centos5 nc-1.84-10. `-p` is not necessary for all the tested platforms. so, remove it.
parent cbb5f7ec
...@@ -345,9 +345,9 @@ _startserver() { ...@@ -345,9 +345,9 @@ _startserver() {
fi fi
# while true ; do # while true ; do
if [ "$DEBUG" ] ; then 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 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 fi
# done # done
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment