Disable IPv6 support when running on IPFire 2.
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 22 Jun 2014 10:36:08 +0000 (10:36 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 22 Jun 2014 10:36:08 +0000 (10:36 +0000)
src/ddns/system.py

index af45262..be18d65 100644 (file)
@@ -196,6 +196,10 @@ class DDNSSystem(object):
        def get_address(self, proto):
                assert proto in ("ipv6", "ipv4")
 
+               # IPFire 2 does not support IPv6.
+               if self.distro == "ipfire-2" and proto == "ipv6":
+                       return
+
                # Check if the external IP address should be guessed from
                # a remote server.
                guess_ip = self.core.settings.get("guess_external_ip", "true")