mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-11-03 05:22:09 +08:00
fix(sysopt): gate shared macOS bypass constant to macOS builds
MACOS_DEFAULT_BYPASS is referenced only from cfg(target_os = "macos") code in sysopt.rs, so clippy on Linux and Windows flagged it as dead code under -D warnings.
This commit is contained in:
@@ -16,6 +16,7 @@ pub mod network {
|
||||
|
||||
pub mod proxy {
|
||||
/// Single source of the macOS default bypass list; both proxy backends compose from it.
|
||||
#[cfg(target_os = "macos")]
|
||||
pub const MACOS_DEFAULT_BYPASS: &str =
|
||||
"127.0.0.1,192.168.0.0/16,10.0.0.0/8,172.16.0.0/12,localhost,*.local,*.crashlytics.com,<local>";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user