mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-11-06 00:32:13 +08:00
fix(sysproxy): fully clear PAC when disabling system proxy (#6591)
This commit is contained in:
@@ -157,8 +157,9 @@ impl Sysopt {
|
||||
|
||||
self.access_guard().write().set_guard_type(GuardType::None);
|
||||
|
||||
if !sys_enable && !pac_enable {
|
||||
// disable proxy
|
||||
// `enable_system_proxy` is the master switch.
|
||||
// When disabled, force clear both global proxy and PAC at OS level.
|
||||
if !sys_enable {
|
||||
sys.set_system_proxy()?;
|
||||
auto.set_auto_proxy()?;
|
||||
return Ok(());
|
||||
|
||||
Reference in New Issue
Block a user