Skip to content

Commit

Permalink
Merge branch 'master' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
MMquant authored Jan 6, 2019
2 parents f6738ea + b546655 commit dec9b5b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion DNSweeper.py
Original file line number Diff line number Diff line change
Expand Up @@ -646,6 +646,7 @@ def extract_PTR_records(self, resolvers_PTR_results):
try:

if type(arpa_ip['result']) is not aiodns.error.DNSError:

record = {
'ip': DNSweeper.arpa_to_ip(arpa_ip['name']),
'name': arpa_ip['result'].name
Expand Down Expand Up @@ -701,7 +702,7 @@ def remove_empty_A_records(records):
def get_uniq_asns(asn_records):

# Filter uniq AS and filter out NA records. Warning: We are losing IPs here!
return list({record['AS']: record for record in asn_records if record['AS'] != 'NA'}.values())
return list({record['AS']:record for record in asn_records if record['AS'] != 'NA'}.values())

@staticmethod
def ipv4_validate(ip):
Expand Down

0 comments on commit dec9b5b

Please sign in to comment.