Skip to content

Commit f03ffd1

Browse files
committed
fix: 更新版本号至2026-06-17并增加订阅转换配置的仅输出节点信息选项
1 parent c9e8b76 commit f03ffd1

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

CHANGELOG

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## [2.1.20260617014121] - 2026-06-17 01:41:21
2+
3+
### ADD
4+
5+
- 订阅转换配置 增加 **仅输出节点信息** 的选项。
6+
17
## [2.1.20260611041617] - 2026-06-11 04:16:17
28

39
### Change

_worker.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const Version = '2026-06-11 04:16:17';
1+
const Version = '2026-06-17 01:41:21';
22
let config_JSON, 反代IP = '', 启用SOCKS5反代 = null, 启用SOCKS5全局反代 = false, 我的SOCKS5账号 = '', parsedSocks5Address = {};
33
let 缓存SOCKS5白名单 = null, 缓存反代IP, 缓存反代解析数组, 缓存反代数组索引 = 0, 启用反代兜底 = true, 调试日志打印 = false;
44
let SOCKS5白名单 = ['*tapecontent.net', '*cloudatacdn.com', '*loadshare.org', '*cdn-centaurus.com', 'scholar.google.com'];
@@ -452,7 +452,7 @@ export default {
452452
}
453453
}).filter(item => item !== null).join('\n');
454454
} else { // 订阅转换
455-
const 订阅转换URL = `${config_JSON.订阅转换配置.SUBAPI}/sub?target=${订阅类型}&url=${encodeURIComponent(url.protocol + '//' + url.host + '/sub?target=mixed&token=' + 今日订阅转换后端专属TOKEN + '&cnIspCode=' + 识别运营商(request) + (url.searchParams.has('sub') && url.searchParams.get('sub') != '' ? `&sub=${url.searchParams.get('sub')}` : ''))}&config=${encodeURIComponent(config_JSON.订阅转换配置.SUBCONFIG)}&emoji=${config_JSON.订阅转换配置.SUBEMOJI}&scv=${config_JSON.跳过证书验证}`;
455+
const 订阅转换URL = `${config_JSON.订阅转换配置.SUBAPI}/sub?target=${订阅类型}&url=${encodeURIComponent(url.protocol + '//' + url.host + '/sub?target=mixed&token=' + 今日订阅转换后端专属TOKEN + '&cnIspCode=' + 识别运营商(request) + (url.searchParams.has('sub') && url.searchParams.get('sub') != '' ? `&sub=${url.searchParams.get('sub')}` : ''))}&config=${encodeURIComponent(config_JSON.订阅转换配置.SUBCONFIG)}&emoji=${config_JSON.订阅转换配置.SUBEMOJI}&list=${config_JSON.订阅转换配置.SUBLIST}&scv=${config_JSON.跳过证书验证}`;
456456
try {
457457
const response = await fetch(订阅转换URL, { headers: { 'User-Agent': 'Subconverter for ' + 订阅类型 + ' edge' + 'tunnel (https://github.com/' + 特征码字典[1] + '/edge' + 'tunnel)' } });
458458
if (response.ok) {
@@ -4958,6 +4958,7 @@ async function 读取config_JSON(env, hostname, userID, UA = "Mozilla/5.0", 重
49584958
SUBAPI: `https://SUBAPI.${特征码字典[1]}ssss.net`,
49594959
SUBCONFIG: `https://raw.githubusercontent.com/${特征码字典[1]}/ACL4SSR/refs/heads/main/Clash/config/ACL4SSR_Online_Mini_MultiMode_CF.ini`,
49604960
SUBEMOJI: false,
4961+
SUBLIST: false, //仅输出节点信息
49614962
},
49624963
反代: {
49634964
[_p]: "auto",
@@ -5025,6 +5026,7 @@ async function 读取config_JSON(env, hostname, userID, UA = "Mozilla/5.0", 重
50255026
config_JSON = 默认配置JSON;
50265027
}
50275028

5029+
if (!config_JSON.订阅转换配置.SUBLIST) config_JSON.订阅转换配置.SUBLIST = false;
50285030
if (!config_JSON.gRPCUserAgent) config_JSON.gRPCUserAgent = UA;
50295031
config_JSON.HOST = host;
50305032
if (!config_JSON.HOSTS) config_JSON.HOSTS = [hostname];

0 commit comments

Comments
 (0)