start check ip change task
This commit is contained in:
parent
9d01259d66
commit
aa968e00fd
1 changed files with 1 additions and 0 deletions
|
@ -60,6 +60,7 @@ class LocalNodes(dict):
|
||||||
return
|
return
|
||||||
self.setup()
|
self.setup()
|
||||||
self._ip_changed = PeriodicCallback(self._update_if_ip_changed, 60000)
|
self._ip_changed = PeriodicCallback(self._update_if_ip_changed, 60000)
|
||||||
|
state.main.add_callback(self._ip_changed.start)
|
||||||
|
|
||||||
def setup(self):
|
def setup(self):
|
||||||
self.local_ips = get_broadcast_interfaces()
|
self.local_ips = get_broadcast_interfaces()
|
||||||
|
|
Loading…
Reference in a new issue