From c254a9ef692190342aa697e2c778d90091865e95 Mon Sep 17 00:00:00 2001 From: "Wladimir J. van der Laan" Date: Tue, 1 Oct 2019 11:22:21 +0200 Subject: [PATCH] contrib: makeseeds: dedup by ip,port Handle the multiple ports per IP case (as that's a criterion later). --- contrib/seeds/makeseeds.py | 4 ++-- 1 file 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):