mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-02-24 13:30:02 +08:00
Also listen on port 80
This commit is contained in:
parent
083f594525
commit
f71b11065d
@ -20,6 +20,5 @@ LENGTH="${#HTML}"
|
||||
|
||||
RESPONSE="HTTP/1.1 200 OK\nContent-Length: ${LENGTH}\nConnection: close\n\n$HTML\n\n"
|
||||
|
||||
while true; do
|
||||
echo -en "$RESPONSE" | nc -N -lp "${1:-8080}";
|
||||
done
|
||||
echo -en "$RESPONSE" | nc -k -N -lp 80 &
|
||||
echo -en "$RESPONSE" | nc -k -N -lp "${1:-5000}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user