mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-12-22 21:21:42 +00:00
fix nc info
This commit is contained in:
parent
850db6d4d9
commit
051c706d78
6
le.sh
6
le.sh
@ -353,13 +353,17 @@ _startserver() {
|
|||||||
_NC="$_NC -p"
|
_NC="$_NC -p"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
_debug nc "$_NC"
|
_debug "$_NC $Le_HTTPPort"
|
||||||
# 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 $Le_HTTPPort -vv
|
echo -e -n "HTTP/1.1 200 OK\r\n\r\n$content" | $_NC $Le_HTTPPort -vv
|
||||||
else
|
else
|
||||||
echo -e -n "HTTP/1.1 200 OK\r\n\r\n$content" | $_NC $Le_HTTPPort > /dev/null
|
echo -e -n "HTTP/1.1 200 OK\r\n\r\n$content" | $_NC $Le_HTTPPort > /dev/null
|
||||||
fi
|
fi
|
||||||
|
if [ "$?" != "0" ] ; then
|
||||||
|
_err "nc listen error."
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
# done
|
# done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user