mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-11-04 14:22:11 +08:00
feat(sysproxy): re-apply the proxy when macOS gains a network service
This commit is contained in:
@@ -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;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user