From c968a257c1ed1007307cb9b1757f70bbe45da79a Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Sat, 20 Feb 2016 12:01:30 +1100 Subject: [PATCH] fix subnet prefix --- bin/tests/system/geoip/tests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/tests/system/geoip/tests.sh b/bin/tests/system/geoip/tests.sh index c2f496d1a6..4164eef6eb 100644 --- a/bin/tests/system/geoip/tests.sh +++ b/bin/tests/system/geoip/tests.sh @@ -44,7 +44,7 @@ echo "I:checking GeoIP country database by code (using client subnet) ($n)" ret=0 lret=0 for i in 1 2 3 4 5 6 7; do - $DIG $DIGOPTS txt example -b 127.0.0.1 +subnet="10.53.0.$i/0" > dig.out.ns2.test$n.$i || lret=1 + $DIG $DIGOPTS txt example -b 127.0.0.1 +subnet="10.53.0.$i/32" > dig.out.ns2.test$n.$i || lret=1 j=`cat dig.out.ns2.test$n.$i | tr -d '"'` [ "$i" = "$j" ] || lret=1 [ $lret -eq 1 ] && break