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

This commit is contained in:
neil committed 2016-03-10 21:54:07 +08:00
1 parent cbb5f7ec5c
commit 6389e87fd3
1 file changed
+2 -2
+2 -2
View File
@@ -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
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.