diff --git a/moonraker/components/machine.py b/moonraker/components/machine.py index 111a825..192d101 100644 --- a/moonraker/components/machine.py +++ b/moonraker/components/machine.py @@ -430,7 +430,8 @@ class Machine: addresses: List[Dict[str, Any]] = [ { 'family': IP_FAMILIES[addr['family']], - 'address': addr['local'] + 'address': addr['local'], + 'is_link_local': addr.get('scope', "") == "link" } for addr in interface.get('addr_info', []) if 'family' in addr and 'local' in addr @@ -441,6 +442,7 @@ class Machine: } except Exception: logging.exception("Error processing network update") + return prev_network = self.system_info.get('network', {}) if notify and network != prev_network: self.server.send_event("machine:net_state_changed", network) diff --git a/moonraker/components/proc_stats.py b/moonraker/components/proc_stats.py index 2336b93..f86e362 100644 --- a/moonraker/components/proc_stats.py +++ b/moonraker/components/proc_stats.py @@ -163,6 +163,7 @@ class ProcStats: self.server.send_event("proc_stats:cpu_throttled", ts) self.last_throttled = cur_throttled self.total_throttled |= cur_throttled + await self.machine.parse_network_interfaces() await self.machine.update_service_status() async def _check_throttled_state(self) -> Dict[str, Any]: