Merge pull request #1279 from Neilpang/1277

https://github.com/Neilpang/acme.sh/issues/1277
This commit is contained in:
neil authored and GitHub committed 2018-02-17 10:45:44 +08:00
commit aa831fee5b
1 file changed
+6 -2
+6 -2
View File
@@ -2007,6 +2007,10 @@ _startserver() {
_NC="$_NC -6"
fi
if [ "$DEBUG" -gt "1" ]; then
_NC="$_NC -d -d -v"
fi
SOCAT_OPTIONS=TCP-LISTEN:$Le_HTTPPort,crlf,reuseaddr,fork
#Adding bind to local-address
@@ -2014,8 +2018,8 @@ _startserver() {
$SOCAT_OPTIONS="$SOCAT_OPTIONS,bind=${ncaddr}"
fi
_debug "_NC" "$_NC"
$_NC $SOCAT_OPTIONS SYSTEM:"sleep 0.5; echo HTTP/1.1 200 OK; echo ; echo $content; echo;" &
_debug "_NC" "$_NC $SOCAT_OPTIONS"
$_NC $SOCAT_OPTIONS SYSTEM:"sleep 0.5; echo HTTP/1.0 200 OK; echo ; echo $content; echo;" &
serverproc="$!"
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.