mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-11-12 17:31:47 +00:00
Merge pull request #1218 from hcouplet/standalone-listen-address-fix
Standalone listen address fix. #1217
This commit is contained in:
commit
4bb5d27c59
10
acme.sh
10
acme.sh
@ -2007,9 +2007,15 @@ _startserver() {
|
||||
_NC="$_NC -6"
|
||||
fi
|
||||
|
||||
SOCAT_OPTIONS=TCP-LISTEN:$Le_HTTPPort,crlf,reuseaddr,fork
|
||||
|
||||
#Adding bind to local-address
|
||||
if [ "$_local_address" ]; then
|
||||
$SOCAT_OPTIONS="$SOCAT_OPTIONS,bind=${_local_address}"
|
||||
fi
|
||||
|
||||
_debug "_NC" "$_NC"
|
||||
#todo listen address
|
||||
$_NC TCP-LISTEN:$Le_HTTPPort,crlf,reuseaddr,fork SYSTEM:"sleep 0.5; echo HTTP/1.1 200 OK; echo ; echo $content; echo;" &
|
||||
$_NC $SOCAT_OPTIONS SYSTEM:"sleep 0.5; echo HTTP/1.1 200 OK; echo ; echo $content; echo;" &
|
||||
serverproc="$!"
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user