From 20ee9ded59a845a5581126794c3fb66eb46439d6 Mon Sep 17 00:00:00 2001 From: Mitchell Krog Date: Mon, 5 Jul 2021 09:48:14 +0200 Subject: [PATCH] GHA workflow - Debug blacklist-ips.conf [skip travis] --- dev-tools/test-blocker-whitelist-ips.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dev-tools/test-blocker-whitelist-ips.sh b/dev-tools/test-blocker-whitelist-ips.sh index 3f6355845..f6a5b5992 100755 --- a/dev-tools/test-blocker-whitelist-ips.sh +++ b/dev-tools/test-blocker-whitelist-ips.sh @@ -79,7 +79,7 @@ sleep 10s } run_curltest1 () { -if curl http://localhost:80 2>&1 | grep -i '(52)'; then +if curl http://${thisip}:80 2>&1 | grep -i '(52)'; then echo "${bold}${green}PASSED - ${bold}${red}blacklist own ip is WORKING" else echo "${bold}${red}FAILED - blacklist own ip is NOT working" @@ -88,11 +88,11 @@ fi } run_curltest2 () { -if curl http://localhost:80 2>&1 | grep -i 'Welcome'; then +if curl http://${thisip}:80 2>&1 | grep -i 'Welcome'; then echo "${bold}${green}PASSED - whitelist own ip is WORKING" else echo "${bold}${red}FAILED - whitelist own ip is NOT working" - curl http://localhost:80 + curl http://${thisip}:80 exit 1 fi }