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-08-09 18:00:41 +0300
committerCasey Deccio <casey@deccio.net>2016-08-09 18:00:41 +0300
commita30c455dbae03b888b2d37e73f02b9cd3efe3395 (patch)
tree30924041eab4494d7f6f1d7dc9f950e14732970d
parent6250bc1fbd89029ee50199dc913fb61677e0791b (diff)
Initialize full resolver when not using threads
-rw-r--r--dnsviz/commands/probe.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/dnsviz/commands/probe.py b/dnsviz/commands/probe.py
index 2ce62a9..3e1c3b3 100644
--- a/dnsviz/commands/probe.py
+++ b/dnsviz/commands/probe.py
@@ -503,7 +503,7 @@ def main(argv):
usage(str(e))
sys.exit(1)
- tm = transport.DNSQueryTransportManager()
+ _init_tm()
stub_resolver = Resolver.from_file('/etc/resolv.conf', StandardRecursiveQueryCD, transport_manager=tm)
# get all the -x options
@@ -844,6 +844,7 @@ def main(argv):
if '-t' in opts:
a = cls(try_ipv4, try_ipv6, client_ipv4, client_ipv6, ceiling, edns_diagnostics, stop_at_explicit, cache_level, rdtypes, explicit_only, dlv_domain, th_factories, processes)
else:
+ _init_resolver()
a = cls(try_ipv4, try_ipv6, client_ipv4, client_ipv6, ceiling, edns_diagnostics, stop_at_explicit, cache_level, rdtypes, explicit_only, dlv_domain, th_factories)
if flush:
fh.write('{')