From b46a0ada452787e6ef844e91d11a37ef8df6b2c7 Mon Sep 17 00:00:00 2001 From: Breeze Date: Sat, 8 Aug 2026 16:14:17 +0200 Subject: [PATCH] Fix invalid IPv6 fallback address --- src/networkmonitor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/networkmonitor.py b/src/networkmonitor.py index 0cdffaf6f..39b78c85d 100644 --- a/src/networkmonitor.py +++ b/src/networkmonitor.py @@ -84,7 +84,7 @@ def _update_online(self): new_online = True if new_ip_info is None: - new_ip_info = util.InterfaceInfo({ "addr": "0.0.0.0" }, { "addr": "[::]" }, new_iface_setting) + new_ip_info = util.InterfaceInfo({ "addr": "0.0.0.0" }, { "addr": "::" }, new_iface_setting) if new_online != self.online or self.current_ip_info != new_ip_info or self.current_iface_setting != new_iface_setting: self.current_ip_info = new_ip_info @@ -149,7 +149,7 @@ def get_default_ip(self, ip_version): s.connect(("2001:4860:4860::8888", 80)) except OSError as e: # print("Unable to retrieve IP address: %s" % str(e)) - return "[::]" + return "::" ans = s.getsockname()[0] return ans