mirror of
https://github.com/anikeen-com/acme.sh.git
synced 2026-11-01 13:29:07 +00:00
graceful
This commit is contained in:
1 parent
1b2e940d6a
commit
bce55f429b
1 file changed
+5
-5
@@ -342,15 +342,15 @@ _startserver() {
|
|||||||
_NC="nc -q 1 -l"
|
_NC="nc -q 1 -l"
|
||||||
|
|
||||||
nchelp="$(nc -h 2>&1)"
|
nchelp="$(nc -h 2>&1)"
|
||||||
|
#centos
|
||||||
if echo "$nchelp" | grep "nmap.org/ncat" >/dev/null ; then
|
if echo "$nchelp" | grep "nmap.org/ncat" >/dev/null ; then
|
||||||
_NC="nc -l"
|
_NC="nc -l"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if echo "$nchelp" | grep "--version" >/dev/null ; then
|
#debian
|
||||||
ncver="$(nc --version)"
|
ncver="$(nc --version 2>&1)"
|
||||||
if echo "$ncver" | grep "http://www.deepspace6.net" > /dev/null ; then
|
if echo "$ncver" | grep "http://www.deepspace6.net" > /dev/null ; then
|
||||||
_NC="$_NC -p"
|
_NC="$_NC -p"
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
_debug nc "$_NC"
|
_debug nc "$_NC"
|
||||||
|
|||||||
Reference in new issue
Block a user