Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/networkmonitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down