From: Mark Andrews Date: Sat, 20 Feb 2016 01:01:30 +0000 (+1100) Subject: fix subnet prefix X-Git-Tag: v9.11.0a1~112 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=c968a257c1ed1007307cb9b1757f70bbe45da79a;p=thirdparty%2Fbind9.git fix subnet prefix --- diff --git a/bin/tests/system/geoip/tests.sh b/bin/tests/system/geoip/tests.sh index c2f496d1a67..4164eef6ebc 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