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
051c706d
Commit
051c706d
authored
Mar 13, 2016
by
neil
Browse files
fix nc info
parent
850db6d4
Changes
1
Show whitespace changes
Inline
Side-by-side
le.sh
View file @
051c706d
...
@@ -353,13 +353,17 @@ _startserver() {
...
@@ -353,13 +353,17 @@ _startserver() {
_NC
=
"
$_NC
-p"
_NC
=
"
$_NC
-p"
fi
fi
_debug
nc
"
$_NC
"
_debug
"
$_NC
$Le_HTTPPort
"
# while true ; do
# while true ; do
if
[
"
$DEBUG
"
]
;
then
if
[
"
$DEBUG
"
]
;
then
echo
-e
-n
"HTTP/1.1 200 OK
\r\n\r\n
$content
"
|
$_NC
$Le_HTTPPort
-vv
echo
-e
-n
"HTTP/1.1 200 OK
\r\n\r\n
$content
"
|
$_NC
$Le_HTTPPort
-vv
else
else
echo
-e
-n
"HTTP/1.1 200 OK
\r\n\r\n
$content
"
|
$_NC
$Le_HTTPPort
>
/dev/null
echo
-e
-n
"HTTP/1.1 200 OK
\r\n\r\n
$content
"
|
$_NC
$Le_HTTPPort
>
/dev/null
fi
fi
if
[
"
$?
"
!=
"0"
]
;
then
_err
"nc listen error."
return
1
fi
# done
# done
}
}
...
...
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