]> git.ipfire.org Git - oddments/ddns.git/commitdiff
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 af452622ebaa9b43b6e95fbbb39e8691115a90bb..be18d650bab6b4aeec6a82e0397c6a600f8b8ef5 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")