]> git.ipfire.org Git - location/libloc.git/commitdiff
location-query: Show flags in lookup output
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 15 May 2020 12:00:53 +0000 (12:00 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 15 May 2020 12:00:53 +0000 (12:00 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/python/location-query.in

index c138644cd1c35a8acd206233b53741716bea7056..0d1510ad4d3e2036f320d36589dfdab3f8b48f3a 100644 (file)
@@ -288,6 +288,24 @@ class CLI(object):
                                        autonomous_system or "AS%s" % network.asn),
                                )
 
+                       # Anonymous Proxy
+                       if network.has_flag(location.NETWORK_FLAG_ANONYMOUS_PROXY):
+                               print(format % (
+                                       _("Anonymous Proxy"), _("yes"),
+                               ))
+
+                       # Satellite Provider
+                       if network.has_flag(location.NETWORK_FLAG_SATELLITE_PROVIDER):
+                               print(format % (
+                                       _("Satellite Provider"), _("yes"),
+                               ))
+
+                       # Anycast
+                       if network.has_flag(location.NETWORK_FLAG_ANYCAST):
+                               print(format % (
+                                       _("Anycast"), _("yes"),
+                               ))
+
                return ret
 
        def handle_dump(self, db, ns):