File tree Expand file tree Collapse file tree 3 files changed +20
-13
lines changed
Expand file tree Collapse file tree 3 files changed +20
-13
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ concurrency:
1616jobs :
1717 check :
1818 name : Check
19- runs-on : ubuntu-22.04
19+ runs-on : macos-latest
2020 steps :
2121 - uses : actions/checkout@v4
2222 - name : Install toolchain
@@ -28,11 +28,17 @@ jobs:
2828 - run : cargo +nightly fmt
2929 build :
3030 name : Build
31- runs-on : ubuntu-22.04
31+ runs-on : macos-latest
3232 steps :
3333 - uses : actions/checkout@v4
3434 - uses : Swatinem/rust-cache@v2
3535 - name : Build
3636 run : cargo build --verbose
37- # - name: Run tests
38- # run: cargo test --verbose
37+ - name : Run
38+ run : cargo run
39+ - name : Upload
40+ uses : actions/upload-artifact@v4
41+ with :
42+ name : clash.yaml
43+ path : subs/release/clash.yaml
44+ retention-days : 5
Original file line number Diff line number Diff line change @@ -6,20 +6,21 @@ fast_mode = false
66# 支持本地地址(绝对地址)/User/xxx/xx.yml
77# 支持单个订阅链接,ss://xxx
88subs = [
9- " https://sub.reajason.eu.org/clash.yaml"
9+ " https://sub.reajason.eu.org/clash.yaml" ,
10+ " https://s1.byte16.com/api/v1/client/subscribe?token=feba159f3478ff8936f52a43d88aae8b" ,
11+ " https://www.cwy-water.us.kg/api/v1/client/subscribe?token=daa0f9c43c5b7f91a08aee21dab0138c" ,
12+ " https://guanxi.us.kg/guanxi" ,
13+ " https://naiher.me/vdnYUg.txt" ,
1014]
1115
1216# 是否重命名节点,打开后会使用 geoip 等方式进行代理真实 IP 和地理地址查询
1317rename_node = true
1418rename_pattern = " ${COUNTRYCODE}_${CITY}_${ISP}"
1519
1620# 是否需要加上代理池的节点一起筛选
17- need_add_pool = false
21+ need_add_pool = true
1822# 代理节点池
1923pools = [
20- " https://sub.ss5.xyz/" ,
21- " https://igdux.top/~Clash" ,
22- # "https://sub.tgzdyz2.xyz/sub",
2324 " https://raw.githubusercontent.com/Ruk1ng001/freeSub/main/clash.yaml"
2425]
2526
Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ impl ClashMeta {
9999 ) -> Result < HashMap < String , i64 > , Box < dyn std:: error:: Error > > {
100100 let url = format ! ( "{}/group/{}/delay" , & self . external_url, group_name) ;
101101 let client = Client :: builder ( )
102- . timeout ( Duration :: from_secs ( 1 ) )
102+ . timeout ( Duration :: from_secs ( 10 ) )
103103 . build ( )
104104 . unwrap ( ) ;
105105 let response = client. get ( & url) . query ( & delay_test_config) . send ( ) . await ?;
@@ -240,14 +240,14 @@ mod tests {
240240 #[ tokio:: test]
241241 #[ ignore]
242242 async fn test_group_delay ( ) {
243- let clash_meta = ClashMeta :: new ( 9090 , 7890 ) ;
243+ let clash_meta = ClashMeta :: new ( 9091 , 7890 ) ;
244244 let result = clash_meta
245245 . test_group (
246- "Select " ,
246+ "PROXY " ,
247247 & DelayTestConfig {
248248 url : "http://www.google.com/generate_204" . to_string ( ) ,
249249 expected : Some ( 204 ) ,
250- timeout : 500 ,
250+ timeout : 1000 ,
251251 } ,
252252 )
253253 . await ;
You can’t perform that action at this time.
0 commit comments