Skip to content

Commit

Permalink
contrib: makeseeds: dedup by ip,port
Browse files Browse the repository at this point in the history
Handle the multiple ports per IP case (as that's a criterion later).
  • Loading branch information
laanwj committed Oct 1, 2019
1 parent 3314d87 commit c254a9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contrib/seeds/makeseeds.py
Expand Up @@ -108,10 +108,10 @@ def parseline(line):
}

def dedup(ips):
'''deduplicate by address'''
'''deduplicate by address,port'''
d = {}
for ip in ips:
d[ip['ip']] = ip
d[ip['ip'],ip['port']] = ip
return list(d.values())

def filtermultiport(ips):
Expand Down

0 comments on commit c254a9e

Please sign in to comment.