Merge pull request #6499 from OnyxMsi/ipv6_only_socat_error

socat rejects TCP-LISTEN on ipv6 only networks
pull/6447/merge
neil 2025-09-05 22:19:21 +02:00 committed by GitHub
commit 1deb52f86d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -2538,15 +2538,17 @@ _startserver() {
_NC="socat"
if [ "$Le_Listen_V6" ]; then
_NC="$_NC -6"
SOCAT_OPTIONS=TCP6-LISTEN
else
_NC="$_NC -4"
SOCAT_OPTIONS=TCP4-LISTEN
fi
if [ "$DEBUG" ] && [ "$DEBUG" -gt "1" ]; then
_NC="$_NC -d -d -v"
fi
SOCAT_OPTIONS=TCP-LISTEN:$Le_HTTPPort,crlf,reuseaddr,fork
SOCAT_OPTIONS=$SOCAT_OPTIONS:$Le_HTTPPort,crlf,reuseaddr,fork
#Adding bind to local-address
if [ "$ncaddr" ]; then