Unverified Commit 4bb5d27c authored by neil's avatar neil Committed by GitHub
Browse files

Merge pull request #1218 from hcouplet/standalone-listen-address-fix

Standalone listen address fix. #1217
parents 11a9f1d1 9134b6ea
...@@ -2007,9 +2007,15 @@ _startserver() { ...@@ -2007,9 +2007,15 @@ _startserver() {
_NC="$_NC -6" _NC="$_NC -6"
fi 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" _debug "_NC" "$_NC"
#todo listen address $_NC $SOCAT_OPTIONS SYSTEM:"sleep 0.5; echo HTTP/1.1 200 OK; echo ; echo $content; echo;" &
$_NC TCP-LISTEN:$Le_HTTPPort,crlf,reuseaddr,fork SYSTEM:"sleep 0.5; echo HTTP/1.1 200 OK; echo ; echo $content; echo;" &
serverproc="$!" serverproc="$!"
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment