Commit 6d60f288 authored by neil's avatar neil
Browse files

fix nc issue for freebsd

parent 14165e5a
...@@ -601,6 +601,8 @@ _startserver() { ...@@ -601,6 +601,8 @@ _startserver() {
else else
if echo "$nchelp" | grep "GNU netcat" >/dev/null && echo "$nchelp" | grep "\-c, \-\-close" >/dev/null ; then if echo "$nchelp" | grep "GNU netcat" >/dev/null && echo "$nchelp" | grep "\-c, \-\-close" >/dev/null ; then
_NC="nc -c -l" _NC="nc -c -l"
elif echo "$nchelp" | grep "\-N" |grep "Shutdown the network socket after EOF on stdin" >/dev/null ; then
_NC="nc -N -l"
else else
_NC="nc -l" _NC="nc -l"
fi fi
......
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