From 6389e87fd36821fdf4a7fb1e1f85c1473fc959e2 Mon Sep 17 00:00:00 2001 From: neil Date: Thu, 10 Mar 2016 21:54:07 +0800 Subject: [PATCH] fix compatible for centos5 nc-1.84-10. `-p` is not necessary for all the tested platforms. so, remove it. --- le.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/le.sh b/le.sh index 95bb541a..71ed1677 100755 --- a/le.sh +++ b/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 }