From: Michael Tremer Date: Tue, 16 Dec 2025 17:31:05 +0000 (+0000) Subject: export: Give the origin zone the correct name X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=70cbd22c0e16c56ecdb34205512677db077da74f;p=location%2Flibloc.git export: Give the origin zone the correct name Signed-off-by: Michael Tremer --- diff --git a/src/python/location/export.py b/src/python/location/export.py index faf39e2..fd3bad6 100644 --- a/src/python/location/export.py +++ b/src/python/location/export.py @@ -367,9 +367,9 @@ class ZoneExporter(object): def _format_dnsbl(self, network): return "127.0.0.2" - # ASN + # Origin - def _format_asn(self, network): + def _format_origin(self, network): # Skip the network if it does not belong to an AS if network.asn is None: return @@ -382,6 +382,6 @@ class ZoneExporter(object): return "\"%s\"" % asn formats = { - "asn" : ("TXT", _format_asn), + "origin" : ("TXT", _format_asn), "bogons" : ("A", _format_dnsbl), }