refactor(sysproxy): delegate macOS network monitoring to sysproxy-rs

This commit is contained in:
wonfen
2026-09-14 22:10:33 +08:00
parent 8a5548af10
commit d289a608d9
5 changed files with 34 additions and 53 deletions
+1 -4
View File
@@ -476,10 +476,7 @@ impl CoreManager {
// rather than fail — only if the watcher is actually live; a user toggling while
// offline still fails fast.
#[cfg(target_os = "macos")]
let watcher_armed = crate::core::network_watch::is_armed();
#[cfg(not(target_os = "macos"))]
let watcher_armed = false;
if watcher_armed
if crate::core::network_watch::is_armed()
&& !crate::utils::resolve::is_resolve_done()
&& Config::verge()
.await