From 051c706d787c90589510c598598f48f2561852ca Mon Sep 17 00:00:00 2001 From: neil Date: Sun, 13 Mar 2016 15:57:12 +0800 Subject: [PATCH] fix nc info --- le.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/le.sh b/le.sh index 47dc7923..2f1f63d1 100755 --- a/le.sh +++ b/le.sh @@ -353,13 +353,17 @@ _startserver() { _NC="$_NC -p" fi - _debug nc "$_NC" + _debug "$_NC $Le_HTTPPort" # while true ; do if [ "$DEBUG" ] ; then echo -e -n "HTTP/1.1 200 OK\r\n\r\n$content" | $_NC $Le_HTTPPort -vv else echo -e -n "HTTP/1.1 200 OK\r\n\r\n$content" | $_NC $Le_HTTPPort > /dev/null fi + if [ "$?" != "0" ] ; then + _err "nc listen error." + return 1 + fi # done }