Suggested-by: Michael Tremer michael.tremer@ipfire.org Signed-off-by: Peter Müller peter.mueller@ipfire.org --- src/python/location-importer.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/python/location-importer.in b/src/python/location-importer.in index 118b0de..f39a42b 100644 --- a/src/python/location-importer.in +++ b/src/python/location-importer.in @@ -687,7 +687,7 @@ class CLI(object): start_address = ipaddress.ip_network(start_address, strict=False) except ValueError: start_address = start_address.split("/") - ldigits = len(start_address[0].split(".")) + ldigits = start_address[0].count(".")
# How many octets do we need to add? # (LACNIC does not seem to have a /8 or greater assigned, so the following should suffice.)