Also listen on port 80

This commit is contained in:
Kroese 2023-05-03 04:50:49 +02:00 committed by GitHub
parent 083f594525
commit f71b11065d

View File

@ -20,6 +20,5 @@ LENGTH="${#HTML}"
RESPONSE="HTTP/1.1 200 OK\nContent-Length: ${LENGTH}\nConnection: close\n\n$HTML\n\n" RESPONSE="HTTP/1.1 200 OK\nContent-Length: ${LENGTH}\nConnection: close\n\n$HTML\n\n"
while true; do echo -en "$RESPONSE" | nc -k -N -lp 80 &
echo -en "$RESPONSE" | nc -N -lp "${1:-8080}"; echo -en "$RESPONSE" | nc -k -N -lp "${1:-5000}"
done