From: Ralf Jung <post@ralfj.de>
Date: Thu, 8 Jan 2015 07:12:31 +0000 (+0100)
Subject: IPv6 local: report failure
X-Git-Url: https://git.ralfj.de/dyn-nsupdate.git/commitdiff_plain/ce5910c07224d66252ff1921f7c181f65b574449?ds=sidebyside

IPv6 local: report failure
---

diff --git a/client-scripts/dyn-ns-client b/client-scripts/dyn-ns-client
index 6c030d1..9f8118b 100755
--- a/client-scripts/dyn-ns-client
+++ b/client-scripts/dyn-ns-client
@@ -76,6 +76,7 @@ def getMyIPv6(config, verbose = False):
                     if verbose:
                         print("Local IPv6 detected to be",ip)
                     return ip
+        raise Exception("Unable to detect correct local IPv6 address")
     return getMyIP("IPv6", config, methods={'local': local}, verbose=verbose)
 
 def getCurIP(domain, family):