diff --git a/NotchBuddy/Sources/App/NetPanel.swift b/NotchBuddy/Sources/App/NetPanel.swift index 78ac52d..5cd7464 100644 --- a/NotchBuddy/Sources/App/NetPanel.swift +++ b/NotchBuddy/Sources/App/NetPanel.swift @@ -346,8 +346,11 @@ final class NetCore: ObservableObject { try? await Task.sleep(for: .seconds(4)) guard !Task.isCancelled else { return } let now = Self.physicalAddresses() - let moved = lastAddresses != nil && now != lastAddresses && !now.isEmpty - lastAddresses = now + // A moment without an address (DHCP renew, Wi-Fi blip) is not another network: + // only a change between two real addresses counts, else the core would restart + // when the same address comes back. + let moved = !now.isEmpty && lastAddresses != nil && now != lastAddresses + if !now.isEmpty { lastAddresses = now } if moved { // Another network: the WireGuard tunnels (Amnezia, clients) are still bound to // the old address — a clean core restart re-binds them without leaking.