mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2026-01-04 20:32:19 +08:00
Merge pull request #6499 from OnyxMsi/ipv6_only_socat_error
socat rejects TCP-LISTEN on ipv6 only networks
This commit is contained in:
4
acme.sh
4
acme.sh
@@ -2538,15 +2538,17 @@ _startserver() {
|
|||||||
_NC="socat"
|
_NC="socat"
|
||||||
if [ "$Le_Listen_V6" ]; then
|
if [ "$Le_Listen_V6" ]; then
|
||||||
_NC="$_NC -6"
|
_NC="$_NC -6"
|
||||||
|
SOCAT_OPTIONS=TCP6-LISTEN
|
||||||
else
|
else
|
||||||
_NC="$_NC -4"
|
_NC="$_NC -4"
|
||||||
|
SOCAT_OPTIONS=TCP4-LISTEN
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$DEBUG" ] && [ "$DEBUG" -gt "1" ]; then
|
if [ "$DEBUG" ] && [ "$DEBUG" -gt "1" ]; then
|
||||||
_NC="$_NC -d -d -v"
|
_NC="$_NC -d -d -v"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
SOCAT_OPTIONS=TCP-LISTEN:$Le_HTTPPort,crlf,reuseaddr,fork
|
SOCAT_OPTIONS=$SOCAT_OPTIONS:$Le_HTTPPort,crlf,reuseaddr,fork
|
||||||
|
|
||||||
#Adding bind to local-address
|
#Adding bind to local-address
|
||||||
if [ "$ncaddr" ]; then
|
if [ "$ncaddr" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user