commit 6a4ed0161a961daaaccfd8b082a7328683f3b2fc Author: Arturo Filastò arturo@filasto.net Date: Fri Apr 15 00:05:07 2016 +0200
Add check on equality of control and experiment DNS responses --- ooni/nettests/blocking/web_connectivity.py | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/ooni/nettests/blocking/web_connectivity.py b/ooni/nettests/blocking/web_connectivity.py index 320f614..175c6d3 100644 --- a/ooni/nettests/blocking/web_connectivity.py +++ b/ooni/nettests/blocking/web_connectivity.py @@ -228,6 +228,10 @@ class WebConnectivityTest(httpt.HTTPTest, dnst.DNSTest): control_ips = set(self.control['dns']['ips']) experiment_ips = set(experiment_dns_answers)
+ if control_ips == experiment_ips: + self.report['dns_consistency'] = 'consistent' + return True + for experiment_ip in experiment_ips: if is_public_ipv4_address(experiment_ip) is False: self.report['dns_consistency'] = 'inconsistent'