Commit 1e0db690 authored by Romain Courteaud's avatar Romain Courteaud

Do not duplicate domain check

parent f8287237
......@@ -112,5 +112,7 @@ def getServerIpDict(db, status_id, resolver_dict, domain_list, rdtype):
for address in answer_list:
if address not in server_ip_dict:
server_ip_dict[address] = []
if domain_text not in server_ip_dict[address]:
# Do not duplicate the domain
server_ip_dict[address].append(domain_text)
return server_ip_dict
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment