diff options
author | Casey Deccio <casey@deccio.net> | 2016-08-09 18:00:41 +0300 |
---|---|---|
committer | Casey Deccio <casey@deccio.net> | 2016-08-09 18:00:41 +0300 |
commit | a30c455dbae03b888b2d37e73f02b9cd3efe3395 (patch) | |
tree | 30924041eab4494d7f6f1d7dc9f950e14732970d | |
parent | 6250bc1fbd89029ee50199dc913fb61677e0791b (diff) |
Initialize full resolver when not using threads
-rw-r--r-- | dnsviz/commands/probe.py | 3 |
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('{') |