Commit 051c706d authored by neil's avatar neil
Browse files

fix nc info

parent 850db6d4
......@@ -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
}
......
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