mirror of
https://github.com/clash-verge-rev/clash-verge-rev
synced 2025-05-05 04:33:45 +08:00
fix: pac url error ,fixes #1889
This commit is contained in:
parent
5d33df4e12
commit
c2843f3c4b
@ -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())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user