mirror of
https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker.git
synced 2025-09-02 18:50:13 +00:00
GHA workflow - Debug blacklist-ips.conf [skip travis]
This commit is contained in:
parent
8a98e1a12a
commit
20ee9ded59
1 changed files with 3 additions and 3 deletions
|
@ -79,7 +79,7 @@ sleep 10s
|
||||||
}
|
}
|
||||||
|
|
||||||
run_curltest1 () {
|
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"
|
echo "${bold}${green}PASSED - ${bold}${red}blacklist own ip is WORKING"
|
||||||
else
|
else
|
||||||
echo "${bold}${red}FAILED - blacklist own ip is NOT working"
|
echo "${bold}${red}FAILED - blacklist own ip is NOT working"
|
||||||
|
@ -88,11 +88,11 @@ fi
|
||||||
}
|
}
|
||||||
|
|
||||||
run_curltest2 () {
|
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"
|
echo "${bold}${green}PASSED - whitelist own ip is WORKING"
|
||||||
else
|
else
|
||||||
echo "${bold}${red}FAILED - whitelist own ip is NOT working"
|
echo "${bold}${red}FAILED - whitelist own ip is NOT working"
|
||||||
curl http://localhost:80
|
curl http://${thisip}:80
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue