Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
5c568d69
Commit
5c568d69
authored
Feb 17, 2018
by
neilpang
Browse files
https://github.com/Neilpang/acme.sh/issues/1277
parent
d84665cb
Changes
1
Show whitespace changes
Inline
Side-by-side
acme.sh
View file @
5c568d69
...
...
@@ -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="$!"
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment