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-02 20:43:10 +0300
committerCasey Deccio <casey@deccio.net>2016-08-02 20:43:10 +0300
commit5c845787f03891e6205c4e6444db7aa7c6623e53 (patch)
treecc77217588f34fbc469d095823ff8cd85900e19c
parentcebbb54a6bc00ffe83b32af4cd285fc205e76706 (diff)
Convert bytes to str() for python3 compatibility
-rw-r--r--dnsviz/commands/probe.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/dnsviz/commands/probe.py b/dnsviz/commands/probe.py
index ccbedda..18caf7e 100644
--- a/dnsviz/commands/probe.py
+++ b/dnsviz/commands/probe.py
@@ -362,7 +362,7 @@ def name_addr_mappings_from_string(domain, mappings):
a = answer_map[(n, rdtype, rdclass)]
if isinstance(a, DNSAnswer):
found_answer = True
- explicit_delegations[(name, rdtype)] = dns.rrset.from_text_list(name, 0, dns.rdataclass.IN, rdtype, [r.address for r in a.rrset])
+ explicit_delegations[(name, rdtype)] = dns.rrset.from_text_list(name, 0, dns.rdataclass.IN, rdtype, [IPAddr(r.address) for r in a.rrset])
if port != 53:
for r in a.rrset:
odd_ports[(domain, IPAddr(r.address))] = port