Unverified Commit 8fb8054f authored by Kroese's avatar Kroese Committed by GitHub
Browse files

Also listen on port 80

parent dc0d64e2
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -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}"