2.2.4-alpha.0

This commit is contained in:
Tunglies 2025-04-17 15:20:12 +08:00
parent d84b5456ff
commit a7f156189c
4 changed files with 15 additions and 15 deletions

View File

@ -1,6 +1,6 @@
{
"name": "clash-verge",
"version": "2.2.4-alpha",
"version": "2.2.4-alpha.0",
"license": "GPL-3.0-only",
"scripts": {
"dev": "cross-env RUST_BACKTRACE=1 tauri dev -f verge-dev -- --profile fast-dev",

View File

@ -297,10 +297,7 @@ fn test_clash_info() {
get_result(8888, "127.0.0.1:8888")
);
assert_eq!(
get_case(8888, " :98888 "),
get_result(8888, "")
);
assert_eq!(get_case(8888, " :98888 "), get_result(8888, ""));
assert_eq!(
get_case(8888, "0.0.0.0:8080 "),
@ -322,10 +319,7 @@ fn test_clash_info() {
get_result(8888, "192.168.1.1:8080")
);
assert_eq!(
get_case(8888, "192.168.1.1:80800"),
get_result(8888, "")
);
assert_eq!(get_case(8888, "192.168.1.1:80800"), get_result(8888, ""));
}
#[derive(Default, Debug, Clone, Deserialize, Serialize, PartialEq, Eq)]

View File

@ -82,7 +82,10 @@ impl Sysopt {
(
verge.enable_system_proxy.unwrap_or(false),
verge.proxy_auto_config.unwrap_or(false),
verge.proxy_host.clone().unwrap_or_else(|| String::from("127.0.0.1")),
verge
.proxy_host
.clone()
.unwrap_or_else(|| String::from("127.0.0.1")),
)
};
@ -265,7 +268,10 @@ impl Sysopt {
verge.enable_proxy_guard.unwrap_or(false),
verge.proxy_guard_duration.unwrap_or(10),
verge.proxy_auto_config.unwrap_or(false),
verge.proxy_host.clone().unwrap_or_else(|| String::from("127.0.0.1")),
verge
.proxy_host
.clone()
.unwrap_or_else(|| String::from("127.0.0.1")),
)
};