mirror of
https://github.com/acmesh-official/acme.sh
synced 2025-08-31 22:35:22 +00:00
fix nc issue for freebsd
This commit is contained in:
2
le.sh
2
le.sh
@@ -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
|
||||||
|
Reference in New Issue
Block a user