Skip to content

Commit c0eade1

Browse files
committed
docs: add more proxy pool
1 parent 31fef24 commit c0eade1

File tree

5 files changed

+20
-4
lines changed

5 files changed

+20
-4
lines changed

conf/clash_test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ mixed-port: 7999
22
allow-lan: true
33
bind-address: "*"
44
mode: rule
5-
log-level: info
5+
log-level: debug
66
external-controller: ":9091"
77
geodata-mode: true
88
geox-url:

conf/config.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ fast_mode = false
66
# 支持本地地址(绝对地址)/User/xxx/xx.yml
77
# 支持单个订阅链接,ss://xxx
88
subs = [
9-
"https://raw.githubusercontent.com/ReaJason/Clash-Butler/refs/heads/master/clash.yaml"
109
]
1110

1211
# 是否重命名节点,打开后会使用 geoip 等方式进行代理真实 IP 和地理地址查询
@@ -17,7 +16,10 @@ rename_pattern = "${COUNTRYCODE}_${CITY}_${ISP}"
1716
need_add_pool = true
1817
# 代理节点池
1918
pools = [
20-
"https://raw.githubusercontent.com/Ruk1ng001/freeSub/main/clash.yaml"
19+
"https://raw.githubusercontent.com/Ruk1ng001/freeSub/main/clash.yaml",
20+
"https://raw.githubusercontent.com/snakem982/proxypool/main/source/clash-meta.yaml",
21+
"https://raw.githubusercontent.com/free18/v2ray/refs/heads/main/c.yaml",
22+
"https://guanxi.us.kg/guanxi"
2123
]
2224

2325
# 测试分组大小

proxrs/src/protocol/hysteria2.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,13 @@ mod test {
241241
assert_eq!(hysteria2.to_link(), link);
242242
}
243243

244+
#[test]
245+
fn test_ok() {
246+
let link = "hysteria2://[email protected]:35808/?mport=35808,35808-35850&sni=hy2.jimsblog.us.kg#Hysteria2".to_string();
247+
let hysteria2 = Hysteria2::from_link(link);
248+
assert!(hysteria2.is_ok())
249+
}
250+
244251
#[test]
245252
fn test_hysteria2_from_json() {
246253
let json = r#"{

proxrs/src/protocol/vless.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,13 @@ mod test {
244244
assert_eq!("2001:bc8:1d90:d4e::", vless.server);
245245
}
246246

247+
#[test]
248+
fn test_parse_vless3() {
249+
let link = "vless://fa3129d0-5d5c-4bdf-99d7-708b25e92241@[2603:c022:8013:f300:2859:298e:1387:7c28]:35803?encryption=none&security=reality&sni=sega.com&fp=firefox&pbk=euJOlEl0IAbuX8rsStBPM_DVHBtWF0e5uinEhHCzYxw&sid=32ae7737&spx=%2F&type=tcp&headerType=none#yx9mzoya".to_string();
250+
let vless = Vless::from_link(link).unwrap();
251+
assert_eq!(vless.server, "2603:c022:8013:f300:2859:298e:1387:7c28");
252+
}
253+
247254
// vless://[email protected]:60001?mode=multi&
248255
// security=reality&encryption=none&type=tcp&flow=xtls-rprx-vision&
249256
// pbk=Kyrdn7OhtL66JwSRScElBxoFSZLr5beafP4njt_Y_G0&sid=a3ffb25d&sni=python.org&

proxrs/src/protocol/vmess.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ impl ProxyAdapter for Vmess {
139139
let url = base64decode(&link[8..]);
140140
let parsed: serde_json::Value = serde_json::from_str(&url).unwrap();
141141

142-
let name = String::from(parsed["ps"].as_str().unwrap());
142+
let name = String::from(parsed["ps"].as_str().unwrap_or_default());
143143
let server = parsed["add"].as_str().unwrap().to_string();
144144
let alter_id = parsed["aid"].as_str().map_or_else(
145145
|| parsed["aid"].as_u64().unwrap() as u16,

0 commit comments

Comments
 (0)