fix: pac url error ,fixes #1889

This commit is contained in:
huzibaca 2024-10-21 22:52:10 +08:00
parent 5d33df4e12
commit c2843f3c4b

View File

@ -140,7 +140,7 @@ impl Sysopt {
let shell = app_handle.shell(); let shell = app_handle.shell();
let output = if pac_enable { let output = if pac_enable {
let address = format!("http://{}:{}/pac", "127.0.0.1", pac_port); let address = format!("http://{}:{}/commands/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(["pac", address.as_str()]) .args(["pac", address.as_str()])
@ -377,7 +377,7 @@ impl Sysopt {
let shell = app_handle.shell(); let shell = app_handle.shell();
let output = if pac { let output = if pac {
let address = format!("http://{}:{}/pac", "127.0.0.1", pac_port); let address = format!("http://{}:{}/commands/pac", "127.0.0.1", pac_port);
shell shell
.command(sysproxy_exe.as_path().to_str().unwrap()) .command(sysproxy_exe.as_path().to_str().unwrap())