whitelist_forwardinghosts.sh 211 B

1234567891011
  1. #!/bin/bash
  2. while true; do
  3. read QUERY
  4. QUERY=($QUERY)
  5. if [ "${QUERY[0]}" != "get" ]; then
  6. echo "500 dunno"
  7. continue
  8. fi
  9. echo $(curl -s http://172.22.1.251:8081/forwardinghosts.php?host=${QUERY[1]})
  10. done