aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@protonmail.com>2019-10-01 11:22:21 +0200
committerWladimir J. van der Laan <laanwj@protonmail.com>2019-10-01 11:39:29 +0200
commitc254a9ef692190342aa697e2c778d90091865e95 (patch)
tree61bde98ede5f79f179e4b2fe8623534b5c4d7211
parent3314d879666beaa1aa724ff28ad15326167e548f (diff)
contrib: makeseeds: dedup by ip,port
Handle the multiple ports per IP case (as that's a criterion later).
-rwxr-xr-xcontrib/seeds/makeseeds.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/seeds/makeseeds.py b/contrib/seeds/makeseeds.py
index 710881b1ae..c9ccdc28e8 100755
--- a/contrib/seeds/makeseeds.py
+++ b/contrib/seeds/makeseeds.py
@@ -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):