mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-12-24 22:21:40 +00:00
add note info if netcat-openbsd is required.
This commit is contained in:
parent
b22b085b50
commit
562a4c056e
10
acme.sh
10
acme.sh
@ -61,6 +61,8 @@ DEFAULT_LOG_LEVEL="$LOG_LEVEL_1"
|
|||||||
|
|
||||||
_DEBUG_WIKI="https://github.com/Neilpang/acme.sh/wiki/How-to-debug-acme.sh"
|
_DEBUG_WIKI="https://github.com/Neilpang/acme.sh/wiki/How-to-debug-acme.sh"
|
||||||
|
|
||||||
|
_PREPARE_LINK="https://github.com/Neilpang/acme.sh/wiki/Install-preparations"
|
||||||
|
|
||||||
__INTERACTIVE=""
|
__INTERACTIVE=""
|
||||||
if [ -t 1 ]; then
|
if [ -t 1 ]; then
|
||||||
__INTERACTIVE="1"
|
__INTERACTIVE="1"
|
||||||
@ -1684,6 +1686,14 @@ _startserver() {
|
|||||||
_NC="$_NC -6"
|
_NC="$_NC -6"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "$Le_Listen_V4$Le_Listen_V6$ncaddr" ]; then
|
||||||
|
if ! _contains "$nchelp" "OpenBSD"; then
|
||||||
|
_err "The nc doesn't support '-4', '-6' or local-address, please install 'netcat-openbsd' and try again."
|
||||||
|
_err "See $(__green $_PREPARE_LINK)"
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
if echo "$nchelp" | grep "\-q[ ,]" >/dev/null; then
|
if echo "$nchelp" | grep "\-q[ ,]" >/dev/null; then
|
||||||
_NC="$_NC -q 1 -l $ncaddr"
|
_NC="$_NC -q 1 -l $ncaddr"
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user