From 9742fb296cfaad6ad5ac31346cee8fc2882c302f Mon Sep 17 00:00:00 2001 From: huzibaca Date: Sun, 20 Oct 2024 23:13:23 +0800 Subject: [PATCH] fix: failed to start system proxy with PAC mode --- src-tauri/src/core/sysopt.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src-tauri/src/core/sysopt.rs b/src-tauri/src/core/sysopt.rs index 976c0bb3..65bdcebb 100644 --- a/src-tauri/src/core/sysopt.rs +++ b/src-tauri/src/core/sysopt.rs @@ -143,7 +143,7 @@ impl Sysopt { let address = format!("http://{}:{}/pac", "127.0.0.1", pac_port); let output = shell .command(sysproxy_exe.as_path().to_str().unwrap()) - .args(["opac", address.as_str()]) + .args(["pac", address.as_str()]) .output() .await .unwrap(); @@ -361,7 +361,7 @@ impl Sysopt { } } - // #[cfg(target_os = "windows")] + #[cfg(target_os = "windows")] { use crate::core::handle::Handle; use crate::utils::dirs; @@ -381,7 +381,7 @@ impl Sysopt { shell .command(sysproxy_exe.as_path().to_str().unwrap()) - .args(["opac", address.as_str()]) + .args(["pac", address.as_str()]) .output() .await .unwrap()