- if proto == "ipv4":
- # Check if the external IP address should be guessed from
- # a remote server.
- guess_ip = self.core.settings.get("guess_external_ip", "")
+ # Check if the external IP address should be guessed from
+ # a remote server.
+ guess_ip = self.core.settings.get("guess_external_ip", "true")
+
+ # If the external IP address should be used, we just do
+ # that.
+ if guess_ip in ("true", "yes", "1"):
+ if proto == "ipv6":
+ return self.guess_external_ipv6_address()