4 lines
158 B
Bash
4 lines
158 B
Bash
#!/bin/bash
|
|
set -e
|
|
socat TCP-LISTEN:8888,fork TCP:host:8888 &
|
|
socat TCP-LISTEN:80,fork,crlf SYSTEM:"echo HTTP/1.0 200; echo Content-Type: text/plain; echo;" & |