From 6d60f2885203674efef5f05ad3d97a9b8ceb40fa Mon Sep 17 00:00:00 2001 From: neil Date: Wed, 23 Mar 2016 23:02:59 +0800 Subject: [PATCH] fix nc issue for freebsd --- le.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/le.sh b/le.sh index 06d8d2c..184611c 100755 --- a/le.sh +++ b/le.sh @@ -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