Skip to content

Commit fde25c4

Browse files
committed
style: update
1 parent e16e197 commit fde25c4

File tree

4 files changed

+16
-21
lines changed

4 files changed

+16
-21
lines changed

conf/config.toml

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ fast_mode = false
66
# 支持本地地址(绝对地址)/User/xxx/xx.yml
77
# 支持单个订阅链接,ss://xxx
88
subs = [
9+
"https://sub.reajason.eu.org/clash.yaml"
910
]
1011

1112
# 是否重命名节点,打开后会使用 geoip 等方式进行代理真实 IP 和地理地址查询
@@ -16,30 +17,20 @@ rename_pattern = "${COUNTRYCODE}_${CITY}_${ISP}"
1617
need_add_pool = false
1718
# 代理节点池
1819
pools = [
19-
"https://rvps.duckking.shop:26720/s/clashMeta/764ed3a1a918ee05994ba37a1340ca29",
20-
# "https://sub.tgzdyz2.xyz/sub",
21-
"https://raw.githubusercontent.com/yebekhe/TVC/main/subscriptions/meta/mix",
22-
"https://raw.githubusercontent.com/Ruk1ng001/freeSub/main/clash.yaml",
23-
"https://raw.githubusercontent.com/anaer/Sub/main/clash.yaml",
24-
"https://raw.githubusercontent.com/Misaka-blog/chromego_merge/main/sub/base64.txt",
25-
"https://raw.githubusercontent.com/vxiaov/free_proxies/main/clash/clash.provider.yaml",
20+
"https://sub.ss5.xyz/",
21+
"https://igdux.top/~Clash",
22+
# "https://sub.tgzdyz2.xyz/sub",
23+
"https://raw.githubusercontent.com/Ruk1ng001/freeSub/main/clash.yaml"
2624
]
2725

28-
2926
# 连通性测试
3027
[connect_test]
31-
url = "http://www.gstatic.com/generate_204"
28+
url = "http://www.google.com/generate_204"
3229
expected = 204
3330
timeout = 500
3431

3532
# 带宽测速配置
3633
[speed_test]
3734
enabled = false
3835
url = "https://speed.cloudflare.com/__down?bytes=104857600"
39-
timeout = 3000
40-
41-
# 网站测试配置
42-
[websites.google]
43-
url = "http://www.google.com/generate_204"
44-
expected = 204
45-
timeout = 500
36+
timeout = 3000

proxrs/src/protocol/vless.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ impl ProxyAdapter for Vless {
124124
};
125125

126126
if name.is_empty() {
127-
name = server.clone().to_owned() + port.to_string().as_str();
127+
name = server.to_owned() + port.to_string().as_str();
128128
}
129129

130130
Ok(Vless {

proxrs/src/sub.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,9 @@ mod test {
407407
#[tokio::test]
408408
async fn test_merge_config() {
409409
let urls = vec![
410-
"https://raw.githubusercontent.com/snakem982/proxypool/main/source/clash-meta.yaml".to_string()];
410+
"https://raw.githubusercontent.com/snakem982/proxypool/main/source/clash-meta.yaml"
411+
.to_string(),
412+
];
411413
let proxies = SubManager::get_proxies_from_urls(&urls).await;
412414
let release_clash_template_path =
413415
"/Users/reajason/RustroverProjects/clash-butler/conf/clash_release.yaml".to_string();

src/main.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,9 +208,11 @@ async fn run(config: Settings) {
208208
let mut i = 0;
209209
while i < nodes.len() {
210210
let node = &nodes[i];
211-
// 如果当前节点名称与需要重命名的格式下划线个数一致,暂时认为就是已经格式化好的,
212-
// 因此跳过
213-
if node.matches('_').count() == count && !node.contains("github.com") {
211+
// 如果当前节点名称与需要重命名的格式下划线个数一致,暂时认为就是已经格式化好的
212+
if node.matches('_').count() == count
213+
&& !node.contains("github.com")
214+
&& !node.contains("WangCai")
215+
{
214216
info!("「{}」已符合重命名结构,跳过", node);
215217
i += 1;
216218
continue;

0 commit comments

Comments
 (0)