diff --git a/oml/localnodes.py b/oml/localnodes.py index 5178f0a..6254378 100644 --- a/oml/localnodes.py +++ b/oml/localnodes.py @@ -60,6 +60,7 @@ class LocalNodes(dict): return self.setup() self._ip_changed = PeriodicCallback(self._update_if_ip_changed, 60000) + state.main.add_callback(self._ip_changed.start) def setup(self): self.local_ips = get_broadcast_interfaces()