mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-02-24 13:30:02 +08:00
11 lines
223 B
Bash
11 lines
223 B
Bash
#!/usr/bin/env bash
|
|
|
|
set -eu
|
|
|
|
RESPONSE="HTTP/1.1 200 OK\r\nConnection: close\r\n\r\n${2:-"OK"}\r\n"
|
|
|
|
while { echo -en "$RESPONSE"; } | nc -lN "${1:-8080}"; do
|
|
echo "================================================"
|
|
done
|
|
|