From 9a9b06981d7b0bf32fe8aa461a3452ef68c879dc Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Thu, 7 Mar 2024 13:56:20 +0000 Subject: [PATCH] importer: Skip ASN lines in extended format Signed-off-by: Michael Tremer --- src/scripts/location-importer.in | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- 2.39.2