Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dnsviz/dnsviz.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCasey Deccio <casey@deccio.net>2016-10-17 20:15:43 +0300
committerCasey Deccio <casey@deccio.net>2016-10-17 20:15:43 +0300
commite2ab60e66220323c1feefd3b717ab88c59be14fb (patch)
tree92a7e10da5c232363ce1b7aa85e0f910e02e9e68
parent1671e26d25f48d5b06aa5d848dc705bccdee7eb3 (diff)
Look for any instance of disallowance
...rather than any instance of allowance
-rw-r--r--dnsviz/analysis/online.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/dnsviz/analysis/online.py b/dnsviz/analysis/online.py
index 7f8bf2b..1827402 100644
--- a/dnsviz/analysis/online.py
+++ b/dnsviz/analysis/online.py
@@ -996,8 +996,8 @@ class Analyst(object):
self.th_factories = (self.default_th_factory,)
else:
self.th_factories = th_factories
- self.allow_loopback_query = bool([x for x in self.th_factories if x.cls.allow_loopback_query])
- self.allow_private_query = bool([x for x in self.th_factories if x.cls.allow_private_query])
+ self.allow_loopback_query = not bool([x for x in self.th_factories if not x.cls.allow_loopback_query])
+ self.allow_private_query = not bool([x for x in self.th_factories if not x.cls.allow_private_query])
self.name = name
self.dlv_domain = dlv_domain