commit 600a9440b627ae1bcb948c768d2517542699f9f7 from: Caleb Stein date: Tue May 12 22:49:19 2026 UTC don't update on not-monitored devices commit - 9f394d72aa5b45a32842a3a1c5cddcc6d88f0c53 commit + 600a9440b627ae1bcb948c768d2517542699f9f7 blob - 91f57b6d8cef13d1e482000d62f9e7a576e5f42a blob + 47f48c0341b8a3537dcb70b7d7ecdb6f19aa1e78 --- modules/network.c +++ modules/network.c @@ -49,6 +49,7 @@ read_network_socket(int fd) if (rtm->rtm_type != RTM_IFINFO) return; ifm = (struct if_msghdr *)buf; + if (ifm->ifm_index != wifi_device && ifm->ifm_index != ethernet_device) return; if (!LINK_STATE_IS_UP(ifm->ifm_data.ifi_link_state)) { network_string[0] = '\0'; @@ -105,6 +106,7 @@ get_initial_network_state(void) if (rtm->rtm_type != RTM_IFINFO) continue; ifm = (struct if_msghdr *)next; + if (ifm->ifm_index != wifi_device && ifm->ifm_index != ethernet_device) continue; if (!LINK_STATE_IS_UP(ifm->ifm_data.ifi_link_state)) { network_string[0] = '\0';