diff --git a/adblock_test.sh b/adblock_test.sh index 57bcbff..105763f 100644 --- a/adblock_test.sh +++ b/adblock_test.sh @@ -1,7 +1,6 @@ #!/bin/bash source <(curl -s https://gitea.avc.cx/borekon/scripts/raw/branch/main/colores.sh) -ip_to_find="0.0.0.0" blocked=0 #if [ -z "$1" ] @@ -19,7 +18,7 @@ azul "##################" for j in $domains; do echo -e "${YELLOW}$j${NC}:" output=$(dig -4 @${dns[0]} $j +short) - if [[ "$output" == *"$ip_to_find"* ]]; then + if [[ -z $output || $output == "0.0.0.0" ]]; then verde $output ((blocked++)) else