Skip to content

Commit 5328214

Browse files
authored
Merge pull request cmliu#931 from cmliu/beta2.0
fix: 更新Clash订阅配置文件热补丁,修复fallback配置并添加新的ASN映射
2 parents 16a7101 + df12cca commit 5328214

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

_worker.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -799,7 +799,7 @@ function Clash订阅配置文件热补丁(Clash_原始订阅内容, uuid = null,
799799
nameserver:
800800
- https://sm2.doh.pub/dns-query
801801
- https://dns.alidns.com/dns-query
802-
fallback:${ECH_DNS ? `\n - ${ECH_DNS}` : ''}
802+
fallback:
803803
- 8.8.4.4
804804
- 208.67.220.220
805805
fallback-filter:
@@ -1498,9 +1498,9 @@ async function 读取config_JSON(env, hostname, userID, path, 重置配置 = fal
14981498
}
14991499

15001500
async function 生成随机IP(request, count = 16, 指定端口 = -1) {
1501-
const asnMap = { '9808': 'cmcc', '4837': 'cu', '4134': 'ct' }, asn = request.cf.asn;
1501+
const asnMap = { '9808': 'cmcc', '4837': 'cu', '17623': 'cu', '4134': 'ct' }, asn = request.cf.asn;
15021502
const cidr_url = asnMap[asn] ? `https://raw.githubusercontent.com/cmliu/cmliu/main/CF-CIDR/${asnMap[asn]}.txt` : 'https://raw.githubusercontent.com/cmliu/cmliu/main/CF-CIDR.txt';
1503-
const cfname = { '9808': 'CF移动优选', '4837': 'CF联通优选', '4134': 'CF电信优选' }[asn] || 'CF官方优选';
1503+
const cfname = { '9808': 'CF移动优选', '4837': 'CF联通优选', '17623': 'CF联通优选', '4134': 'CF电信优选' }[asn] || 'CF官方优选';
15041504
const cfport = [443, 2053, 2083, 2087, 2096, 8443];
15051505
let cidrList = [];
15061506
try { const res = await fetch(cidr_url); cidrList = res.ok ? await 整理成数组(await res.text()) : ['104.16.0.0/13']; } catch { cidrList = ['104.16.0.0/13']; }

0 commit comments

Comments
 (0)