# #-- proxy_allowed.test --# # source the master var file when it's there [ -f ../.tpkg.var.master ] && source ../.tpkg.var.master # use .tpkg.var.test for in test variable passing [ -f .tpkg.var.test ] && source .tpkg.var.test PRE="../.." # do the test echo "> www.example.com." $PRE/streamtcp -p 1.2.3.4 -f 127.0.0.1@$UNBOUND_PORT www.example.com A IN | tee outfile echo "> check answer" if grep "10.20.30.40" outfile; then echo "OK" else echo "Not OK" exit 1 fi if grep "proxy_protocol: 127.0.0.1 is allowed" unbound.log; then echo "OK" else echo "Not OK" exit 1 fi exit 0