mirror of
https://github.com/clash-verge-rev/clash-verge-rev
synced 2025-05-05 04:43:44 +08:00
fix: failed to start system proxy with PAC mode
This commit is contained in:
parent
9ff3c2c0d4
commit
9742fb296c
@ -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()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user