Skip to content

Commit 1deb52f

Browse files
authored
Merge pull request #6499 from OnyxMsi/ipv6_only_socat_error
socat rejects TCP-LISTEN on ipv6 only networks
2 parents 39cb87d + 04e2549 commit 1deb52f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

acme.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2538,15 +2538,17 @@ _startserver() {
25382538
_NC="socat"
25392539
if [ "$Le_Listen_V6" ]; then
25402540
_NC="$_NC -6"
2541+
SOCAT_OPTIONS=TCP6-LISTEN
25412542
else
25422543
_NC="$_NC -4"
2544+
SOCAT_OPTIONS=TCP4-LISTEN
25432545
fi
25442546

25452547
if [ "$DEBUG" ] && [ "$DEBUG" -gt "1" ]; then
25462548
_NC="$_NC -d -d -v"
25472549
fi
25482550

2549-
SOCAT_OPTIONS=TCP-LISTEN:$Le_HTTPPort,crlf,reuseaddr,fork
2551+
SOCAT_OPTIONS=$SOCAT_OPTIONS:$Le_HTTPPort,crlf,reuseaddr,fork
25502552

25512553
#Adding bind to local-address
25522554
if [ "$ncaddr" ]; then

0 commit comments

Comments
 (0)