fix: failed to start system proxy with PAC mode

This commit is contained in:
huzibaca
2024-10-20 23:13:23 +08:00
parent 0dc92fbc99
commit b61b63d100

View File

@@ -143,7 +143,7 @@ impl Sysopt {
let address = format!("http://{}:{}/pac", "127.0.0.1", pac_port); let address = format!("http://{}:{}/pac", "127.0.0.1", pac_port);
let output = shell let output = shell
.command(sysproxy_exe.as_path().to_str().unwrap()) .command(sysproxy_exe.as_path().to_str().unwrap())
.args(["opac", address.as_str()]) .args(["pac", address.as_str()])
.output() .output()
.await .await
.unwrap(); .unwrap();
@@ -361,7 +361,7 @@ impl Sysopt {
} }
} }
// #[cfg(target_os = "windows")] #[cfg(target_os = "windows")]
{ {
use crate::core::handle::Handle; use crate::core::handle::Handle;
use crate::utils::dirs; use crate::utils::dirs;
@@ -381,7 +381,7 @@ impl Sysopt {
shell shell
.command(sysproxy_exe.as_path().to_str().unwrap()) .command(sysproxy_exe.as_path().to_str().unwrap())
.args(["opac", address.as_str()]) .args(["pac", address.as_str()])
.output() .output()
.await .await
.unwrap() .unwrap()