mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-12-25 22:51:39 +00:00
This commit is contained in:
parent
d84665cb64
commit
5c568d6999
8
acme.sh
8
acme.sh
@ -2007,6 +2007,10 @@ _startserver() {
|
|||||||
_NC="$_NC -6"
|
_NC="$_NC -6"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "$DEBUG" -gt "1" ]; then
|
||||||
|
_NC="$_NC -d -d -v"
|
||||||
|
fi
|
||||||
|
|
||||||
SOCAT_OPTIONS=TCP-LISTEN:$Le_HTTPPort,crlf,reuseaddr,fork
|
SOCAT_OPTIONS=TCP-LISTEN:$Le_HTTPPort,crlf,reuseaddr,fork
|
||||||
|
|
||||||
#Adding bind to local-address
|
#Adding bind to local-address
|
||||||
@ -2014,8 +2018,8 @@ _startserver() {
|
|||||||
$SOCAT_OPTIONS="$SOCAT_OPTIONS,bind=${ncaddr}"
|
$SOCAT_OPTIONS="$SOCAT_OPTIONS,bind=${ncaddr}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
_debug "_NC" "$_NC"
|
_debug "_NC" "$_NC $SOCAT_OPTIONS"
|
||||||
$_NC $SOCAT_OPTIONS SYSTEM:"sleep 0.5; echo HTTP/1.1 200 OK; echo ; echo $content; echo;" &
|
$_NC $SOCAT_OPTIONS SYSTEM:"sleep 0.5; echo HTTP/1.0 200 OK; echo ; echo $content; echo;" &
|
||||||
serverproc="$!"
|
serverproc="$!"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user