From: Michael Tremer Date: Thu, 7 Mar 2024 13:56:20 +0000 (+0000) Subject: importer: Skip ASN lines in extended format X-Git-Tag: 0.9.18~90 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9a9b06981d7b0bf32fe8aa461a3452ef68c879dc;p=location%2Flibloc.git importer: Skip ASN lines in extended format Signed-off-by: Michael Tremer --- diff --git a/src/scripts/location-importer.in b/src/scripts/location-importer.in index b23ed32..f9c068e 100644 --- a/src/scripts/location-importer.in +++ b/src/scripts/location-importer.in @@ -1354,8 +1354,12 @@ class CLI(object): log.warning("Could not parse line: %s" % line) return + # Skip ASN + if type == "asn": + return + # Skip any unknown protocols - if not type in ("ipv6", "ipv4"): + elif not type in ("ipv6", "ipv4"): log.warning("Unknown IP protocol '%s'" % type) return