fix nc issue for freebsd

This commit is contained in:
neil committed 2016-03-23 23:02:59 +08:00
1 parent 14165e5a9b
commit 6d60f28852
1 file changed
+2
+2
View File
@@ -601,6 +601,8 @@ _startserver() {
else
if echo "$nchelp" | grep "GNU netcat" >/dev/null && echo "$nchelp" | grep "\-c, \-\-close" >/dev/null ; then
_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
_NC="nc -l"
fi
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.