mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2026-05-05 15:22:23 +00:00
12 lines
211 B
Bash
Executable File
12 lines
211 B
Bash
Executable File
#!/bin/bash
|
|
|
|
while true; do
|
|
read QUERY
|
|
QUERY=($QUERY)
|
|
if [ "${QUERY[0]}" != "get" ]; then
|
|
echo "500 dunno"
|
|
continue
|
|
fi
|
|
echo $(curl -s http://172.22.1.251:8081/forwardinghosts.php?host=${QUERY[1]})
|
|
done
|