]> git.ipfire.org Git - ipfire.org.git/blobdiff - src/backend/util.py
location: Redesign lookup page
[ipfire.org.git] / src / backend / util.py
index f7182c896f0378a6d4d0d14eadf24c4377400c75..a44f228946ed1f37c5f40209c8a207e6801e0123 100644 (file)
@@ -72,6 +72,15 @@ class Address(Object):
                if self.asn:
                        return self.backend.location.get_as(self.asn)
 
+       def is_anonymous_proxy(self):
+               return self.network.has_flag(location.NETWORK_FLAG_ANONYMOUS_PROXY)
+
+       def is_satellite_provider(self):
+               return self.network.has_flag(location.NETWORK_FLAG_SATELLITE_PROVIDER)
+
+       def is_anycast(self):
+               return self.network.has_flag(location.NETWORK_FLAG_ANYCAST)
+
        # Blacklist
 
        def _make_blacklist_rr(self, blacklist):