From: Michael Tremer Date: Sun, 22 Jun 2014 10:36:08 +0000 (+0000) Subject: Disable IPv6 support when running on IPFire 2. X-Git-Tag: 001~26 X-Git-Url: http://git.ipfire.org/?p=oddments%2Fddns.git;a=commitdiff_plain;h=afca6b385498f023c99b3f5a17f3cd70a274b789 Disable IPv6 support when running on IPFire 2. --- diff --git a/src/ddns/system.py b/src/ddns/system.py index af45262..be18d65 100644 --- a/src/ddns/system.py +++ b/src/ddns/system.py @@ -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")