fix: proxy bypass add <local>

This commit is contained in:
GyDi 2021-12-19 17:48:38 +08:00
parent 860c44e93d
commit 2a7cabb06d

View File

@ -48,7 +48,7 @@ pub fn set_sys_proxy(enable: bool, clash_info: State<'_, ClashInfoState>) -> Res
let config = if enable { let config = if enable {
let server = format!("127.0.0.1:{}", port.unwrap()); let server = format!("127.0.0.1:{}", port.unwrap());
// todo // todo
let bypass = String::from("localhost;127.*;10.*;172.16.*;172.17.*;172.18.*;172.19.*;172.20.*;172.21.*;172.22.*;172.23.*;172.24.*;172.25.*;172.26.*;172.27.*;172.28.*;172.29.*;172.30.*;172.31.*;192.168.*"); let bypass = String::from("localhost;127.*;10.*;172.16.*;172.17.*;172.18.*;172.19.*;172.20.*;172.21.*;172.22.*;172.23.*;172.24.*;172.25.*;172.26.*;172.27.*;172.28.*;172.29.*;172.30.*;172.31.*;192.168.*;<local>");
SysProxyConfig { SysProxyConfig {
enable, enable,