From c2843f3c4bf398f6f3bca60a77ae08e4e308fe33 Mon Sep 17 00:00:00 2001 From: huzibaca Date: Mon, 21 Oct 2024 22:52:10 +0800 Subject: [PATCH] fix: pac url error ,fixes #1889 --- src-tauri/src/core/sysopt.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src-tauri/src/core/sysopt.rs b/src-tauri/src/core/sysopt.rs index 65bdcebb..0674d5b4 100644 --- a/src-tauri/src/core/sysopt.rs +++ b/src-tauri/src/core/sysopt.rs @@ -140,7 +140,7 @@ impl Sysopt { let shell = app_handle.shell(); 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 .command(sysproxy_exe.as_path().to_str().unwrap()) .args(["pac", address.as_str()]) @@ -377,7 +377,7 @@ impl Sysopt { let shell = app_handle.shell(); 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 .command(sysproxy_exe.as_path().to_str().unwrap())