start check ip change task

This commit is contained in:
j 2019-06-18 09:19:06 +02:00
parent 9d01259d66
commit aa968e00fd

View file

@ -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()