feat(sysproxy): re-apply the proxy when macOS gains a network service

This commit is contained in:
wonfen
2026-09-03 22:42:49 +08:00
parent c89f431cb0
commit e57d115110
7 changed files with 119 additions and 22 deletions
+4
View File
@@ -68,6 +68,10 @@ pub(crate) fn resolve_setup_async() {
}
Config::verify_config_initialization().await;
// Live before the core starts, so a service appearing mid-start is not missed.
#[cfg(target_os = "macos")]
crate::core::network_watch::start().await;
let core_init = AsyncHandler::spawn(|| async {
init_core_manager().await;
});