lab.nexedi.com will be down from Thursday, 20 March 2025, 07:30:00 UTC for a duration of approximately 2 hours

Commit df072005 authored by Michael Tremer's avatar Michael Tremer

location: Fix handling of families argument

This was ignored, because it was already converted before
and the export function was expecting a string.

Fixes: #12436
Signed-off-by: default avatarMichael Tremer <michael.tremer@ipfire.org>
parent 22302d77
......@@ -517,10 +517,8 @@ class CLI(object):
countries, asns = [], []
# Translate family
if ns.family == "ipv6":
families = [ socket.AF_INET6 ]
elif ns.family == "ipv4":
families = [ socket.AF_INET ]
if ns.family:
families = [ ns.family ]
else:
families = [ socket.AF_INET6, socket.AF_INET ]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment