From: Peter Müller Date: Sun, 5 Jun 2022 09:25:45 +0000 (+0000) Subject: location-importer: AS names starting with "DNIC" actually are valid X-Git-Tag: 0.9.14~15 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fb965e86c1229eb50311923247ad16085fc03430;p=location%2Flibloc.git location-importer: AS names starting with "DNIC" actually are valid These are all assigned to the US Department of Defense. Signed-off-by: Peter Müller Signed-off-by: Michael Tremer --- diff --git a/src/scripts/location-importer.in b/src/scripts/location-importer.in index bde92ce..083acb6 100644 --- a/src/scripts/location-importer.in +++ b/src/scripts/location-importer.in @@ -894,7 +894,7 @@ class CLI(object): continue # Skip any AS name that appears to be a placeholder for a different RIR or entity... - if re.match(r"^(ASN-BLK|)(AFCONC|AFRINIC|APNIC|ASNBLK|DNIC|LACNIC|RIPE|IANA)(?:\d?$|\-)", name): + if re.match(r"^(ASN-BLK|)(AFCONC|AFRINIC|APNIC|ASNBLK|LACNIC|RIPE|IANA)(?:\d?$|\-)", name): continue # Bail out in case the AS name contains anything we do not expect here...