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
f76eb452
Commit
f76eb452
authored
Mar 16, 2016
by
neil
Browse files
compatible to GNU netcat
parent
387c2eab
Changes
1
Show whitespace changes
Inline
Side-by-side
le.sh
View file @
f76eb452
...
@@ -442,11 +442,15 @@ _startserver() {
...
@@ -442,11 +442,15 @@ _startserver() {
if
echo
"
$nchelp
"
|
grep
"
\-
q "
>
/dev/null
;
then
if
echo
"
$nchelp
"
|
grep
"
\-
q "
>
/dev/null
;
then
_NC
=
"nc -q 1 -l"
_NC
=
"nc -q 1 -l"
else
if
echo
"
$nchelp
"
|
grep
"GNU netcat"
>
/dev/null
&&
echo
"
$nchelp
"
|
grep
"
\-
c,
\-\-
close"
>
/dev/null
;
then
_NC
=
"nc -c -l"
else
else
_NC
=
"nc -l"
_NC
=
"nc -l"
fi
fi
fi
_debug
"
$
_NC
$Le_HTTPPort
"
_debug
"_NC
"
"
$_NC
"
# while true ; do
# while true ; do
if
[
"
$DEBUG
"
]
;
then
if
[
"
$DEBUG
"
]
;
then
if
!
echo
-e
-n
"HTTP/1.1 200 OK
\r\n\r\n
$content
"
|
$_NC
-p
$Le_HTTPPort
-vv
;
then
if
!
echo
-e
-n
"HTTP/1.1 200 OK
\r\n\r\n
$content
"
|
$_NC
-p
$Le_HTTPPort
-vv
;
then
...
...
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