Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
aa831fee
Unverified
Commit
aa831fee
authored
Feb 17, 2018
by
neil
Committed by
GitHub
Feb 17, 2018
Browse files
Merge pull request #1279 from Neilpang/1277
https://github.com/Neilpang/acme.sh/issues/1277
parents
d84665cb
5c568d69
Changes
1
Show whitespace changes
Inline
Side-by-side
acme.sh
View file @
aa831fee
...
...
@@ -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