contrib: makeseeds: dedup by ip,port

Handle the multiple ports per IP case (as that's a criterion later).
pull/764/head
Wladimir J. van der Laan 5 years ago
parent 3314d87966
commit c254a9ef69

@ -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):

Loading…
Cancel
Save