diff --git a/.github/ISSUE_TEMPLATE/问题反馈.yml b/.github/ISSUE_TEMPLATE/问题反馈.yml index ca1b097d..a1f2a602 100644 --- a/.github/ISSUE_TEMPLATE/问题反馈.yml +++ b/.github/ISSUE_TEMPLATE/问题反馈.yml @@ -7,7 +7,7 @@ body: value: | **先读我** - [排查方法](https://t.me/zhetengsha/218) + [排查方法](https://telegram.me/zhetengsha/218) - type: checkboxes id: read-troubleshooting attributes: diff --git a/README.md b/README.md index fe54891b..cb5dcb8f 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,7 @@ Sub-Store also supports a configurable browser CORS allowlist for the backend AP ### Supported Input Formats -[本地节点怎么写/How To Write A Local Node](https://t.me/zhetengsha/824) +[本地节点怎么写/How To Write A Local Node](https://telegram.me/zhetengsha/824) > ⚠️ Do not use `Shadowrocket` or `NekoBox` to export URI and then import it as input. The URIs exported in this way may not be standard URIs. However, we have already supported some very common non-standard URIs (such as VMess, VLESS). @@ -79,7 +79,7 @@ Sub-Store also supports a configurable browser CORS allowlist for the backend AP > Please note, HTTP(s) does not have a standard URI format, so it is not supported. Please use other formats. - [x] Clash Proxies YAML - [x] Clash Proxy JSON/JSON5/YAML(single line) - > [NaiveProxy](https://t.me/zhetengsha/4308) + > [NaiveProxy](https://telegram.me/zhetengsha/4308) - [x] QX (SS, SSR, VMess, Trojan, HTTP, SOCKS5, VLESS, AnyTLS) - [x] Loon (SS, SSR, VMess, Trojan, HTTP, SOCKS5, SOCKS5-TLS, WireGuard, VLESS, Hysteria 2, AnyTLS) - [x] Surge (Direct, SS, VMess, Trojan, HTTP, HTTPS, HTTP/2 CONNECT, SOCKS5, SOCKS5-TLS, AnyTLS, TrustTunnel, TUIC, Snell, Hysteria 2, SSH(Password authentication only), External Proxy Program(only for macOS), WireGuard(Surge to Surge)) diff --git a/backend/package.json b/backend/package.json index 70ad6fd7..7d9bc382 100644 --- a/backend/package.json +++ b/backend/package.json @@ -1,6 +1,6 @@ { "name": "sub-store", - "version": "2.36.5", + "version": "2.36.6", "description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and Shadowrocket.", "main": "src/main.js", "packageManager": "pnpm@11.0.9", diff --git a/backend/src/restful/miscs.js b/backend/src/restful/miscs.js index c40de592..830246cc 100644 --- a/backend/src/restful/miscs.js +++ b/backend/src/restful/miscs.js @@ -129,7 +129,7 @@ function getEnv(req, res) { { status: 'success', data: { - guide: '⚠️⚠️⚠️ 您当前看到的是后端的响应. 若想配合前端使用, 可访问官方前端 https://sub-store.vercel.app 后自行配置后端地址, 或一键配置后端 https://sub-store.vercel.app?api=https://a.com/xxx (假设 https://a.com 是你后端的域名, /xxx 是自定义路径). 需注意 HTTPS 前端无法请求非本地的 HTTP 后端(部分浏览器上也无法访问本地 HTTP 后端). 请配置反代或在局域网自建 HTTP 前端. 如果还有问题, 可查看此排查说明: https://t.me/zhetengsha/1068', + guide: '⚠️⚠️⚠️ 您当前看到的是后端的响应. 若想配合前端使用, 可访问官方前端 https://sub-store.vercel.app 后自行配置后端地址, 或一键配置后端 https://sub-store.vercel.app?api=https://a.com/xxx (假设 https://a.com 是你后端的域名, /xxx 是自定义路径). 需注意 HTTPS 前端无法请求非本地的 HTTP 后端(部分浏览器上也无法访问本地 HTTP 后端). 请配置反代或在局域网自建 HTTP 前端. 如果还有问题, 可查看此排查说明: https://telegram.me/zhetengsha/1068', ...env, }, }, diff --git a/config/Loon-parser.plugin b/config/Loon-parser.plugin index 402eab20..4a0e32b8 100644 --- a/config/Loon-parser.plugin +++ b/config/Loon-parser.plugin @@ -14,7 +14,7 @@ resourceUrlOnly = switch,true,tag=仅使用远程资源 忽略 Loon 自身解析 ua = input,"",tag=拉取订阅的 User-Agent,desc=拉取订阅的 User-Agent timeout = input,8000,tag=拉取订阅时使用的超时时间,desc=拉取订阅时使用的超时时间 noCache = switch,false,tag=禁用缓存,desc=禁用缓存 -age-secret-key = input,"",tag=age 解密私钥,desc=age 解密私钥 可查看 https://t.me/zhetengsha/5876 +age-secret-key = input,"",tag=age 解密私钥,desc=age 解密私钥 可查看 https://telegram.me/zhetengsha/5876 [Script] generic script-path=https://github.com/sub-store-org/Sub-Store/releases/latest/download/sub-store-parser.loon.min.js,tag=Sub-Store Parser,timeout=900,argument=[{ua},{resourceUrlOnly},{noCache},{timeout},{age-secret-key}] \ No newline at end of file diff --git a/config/README.md b/config/README.md index d466fcd4..1f4b9433 100644 --- a/config/README.md +++ b/config/README.md @@ -4,7 +4,7 @@ Sub-Store Releases: [`https://github.com/sub-store-org/Sub-Store/releases`](https://github.com/sub-store-org/Sub-Store/releases) -Telegram 频道: [`https://t.me/cool_scripts` ](https://t.me/cool_scripts) +Telegram 频道: [`https://telegram.me/cool_scripts` ](https://telegram.me/cool_scripts) ## 服务器/云平台/Docker/Android 版 @@ -39,7 +39,7 @@ SUB_STORE_CORS_ALLOWED_ORIGINS=https://sub-store.vercel.app,http://127.0.0.1:888 Surge Mac 版如何支持 SSR, 如何去除 HTTP 传输层以支持 类似 VMess HTTP 节点等 请查看 [链接参数说明](https://github.com/sub-store-org/Sub-Store/wiki/%E9%93%BE%E6%8E%A5%E5%8F%82%E6%95%B0%E8%AF%B4%E6%98%8E) -定时处理订阅 功能, 避免 App 内拉取超时, 请查看 [定时处理订阅](https://t.me/zhetengsha/1449) +定时处理订阅 功能, 避免 App 内拉取超时, 请查看 [定时处理订阅](https://telegram.me/zhetengsha/1449) 0. 最新 Surge iOS TestFlight 版本 可使用 Beta 版(支持最新 Surge iOS TestFlight 版本的特性): [`https://raw.githubusercontent.com/sub-store-org/Sub-Store/master/config/Surge-Beta.sgmodule`](https://raw.githubusercontent.com/sub-store-org/Sub-Store/master/config/Surge-Beta.sgmodule) diff --git a/scripts/demo.js b/scripts/demo.js index c7e4f63c..ad962505 100644 --- a/scripts/demo.js +++ b/scripts/demo.js @@ -1,11 +1,11 @@ function operator(proxies = [], targetPlatform, context) { // 支持快捷操作 不一定要写一个 function - // 可参考 https://t.me/zhetengsha/970 - // https://t.me/zhetengsha/1009 + // 可参考 https://telegram.me/zhetengsha/970 + // https://telegram.me/zhetengsha/1009 // proxies 为传入的内部节点数组 // 可在预览界面点击节点查看 JSON 结构 或查看 `target=JSON` 的通用订阅 - // 1. 结构大致参考了 Clash.Meta(mihomo), 可参考 mihomo 的文档, 例如 `xudp`, `smux` 都可以自己设置. 但是有私货, 下面是我能想起来的一些私货. 顺便说一下, 关于 mihomo 不支持的协议, 其实也可以用 JSON/JSON5/YAML 格式来输入, 写法可参考使用 includeUnsupportedProxy 参数或开启 包含官方/商店版不支持的协议 开关时的 mihomo 输出内容, 例如 NaiveProxy 输入写法 (https://t.me/zhetengsha/4308) + // 1. 结构大致参考了 Clash.Meta(mihomo), 可参考 mihomo 的文档, 例如 `xudp`, `smux` 都可以自己设置. 但是有私货, 下面是我能想起来的一些私货. 顺便说一下, 关于 mihomo 不支持的协议, 其实也可以用 JSON/JSON5/YAML 格式来输入, 写法可参考使用 includeUnsupportedProxy 参数或开启 包含官方/商店版不支持的协议 开关时的 mihomo 输出内容, 例如 NaiveProxy 输入写法 (https://telegram.me/zhetengsha/4308) // 2. `_no-resolve` 为不解析域名 // 3. 域名解析后 会多一个 `_resolved` 字段, 表示是否解析成功 // 4. 域名解析后会有`_IPv4`, `_IPv6`, `_IP`(若有多个步骤, 只取第一次成功的 v4 或 v6 数据), `_IP4P`(若解析类型为 IPv6 且符合 IP4P 类型, 将自动转换), `_domain` 字段, `_resolved_ips` 为解析出的所有 IP @@ -21,7 +21,7 @@ function operator(proxies = [], targetPlatform, context) { // 输出到 Clash/Stash 时, 会过滤掉配置了前置代理的节点, 并提示使用对应的功能. // 9. `trojan`, `tuic`, `hysteria`, `hysteria2`, `juicity` 会在解析时设置 `tls`: true (会使用 tls 类协议的通用逻辑), 输出时删除 // 10. `sni` 在某些协议里会自动与 `servername` 转换 - // 11. 读取节点的 ca-str 和 _ca (后端文件路径) 字段, 自动计算 fingerprint (参考 https://t.me/zhetengsha/1512) + // 11. 读取节点的 ca-str 和 _ca (后端文件路径) 字段, 自动计算 fingerprint (参考 https://telegram.me/zhetengsha/1512) // 12. 以 Surge 为例, 最新的参数一般我都会跟进, 以 Surge 文档为例, 一些常用的: TUIC/Hysteria 2 的 `ecn`, Snell 的 `reuse` 连接复用, QUIC 策略 block-quic`, Hysteria 2 下载带宽 `down` // Surge 的 `private-key`/`client-cert` 对应内部字段 `keystore-private-key`/`keystore-client-cert`, 值都是 Surge `[Keystore]` 里的密钥库条目名, 不是证书/密钥内容或本地路径 // 例如: $server['keystore-private-key'] = 'ssh-key-name' 输出 Surge SSH 时会生成 private-key="ssh-key-name" @@ -39,7 +39,7 @@ function operator(proxies = [], targetPlatform, context) { // 21. 2.21.59 开始, `sing-box` 支持使用 `ech-opts` 结构设置 `tls` 的 `ech`. 参考 https://github.com/sub-store-org/Sub-Store/pull/563/changes 基本沿用 mihomo 风格, mihomo 部分字段自动转换. URI `ech` 与 mihomo `ech-opts` 会互转: base64 ECHConfigList 使用 `ech-opts.config`; Xray 的 DNS server 写法(如 `https://1.1.1.1/dns-query` 或 `example.com+https://1.1.1.1/dns-query`)会把 DNS server 放到 `ech-opts._dns`, 显式查询域名放到 `ech-opts.query-server-name`. mihomo 不支持在 ech-opts 中配置 ECH DNS. 如需跟节点 ECH 配置一致, 请在 mihomo 配置文件里设置, 可参考: `dns["nameserver-policy"]["cloudflare-ech.com"] = ["https://dns.alidns.com/dns-query"]` . 反向输出 URI 时, 可设置 `ech-opts._dns` 来拼回 `ech`; 如果只设置 `query-server-name` 且未设置 `_dns`, 默认使用 `https://dns.alidns.com/dns-query` 并输出 warn 日志, 自定义 root DNS 请设置 `ech-opts._dns`. XHTTP `download-settings` 里嵌套的 TLS ECH 同样支持, 其中 `echForceQuery`/`echSockopt` 分别对应 `ech-opts._force-query`/`ech-opts._sockopt`, 嵌套 DNS 可设置 `xhttp-opts.download-settings.ech-opts._dns` // 22. `sing-box` 支持使用完整的 `_curve_preferences` 结构设置 `tls` 的 `curve_preferences` // 23. `interface-name` 指定流量出站接口 只给 Surge 用的话, `interface` 也可以 - // 24. Surge for macOS 可手动指定链接参数 target=SurgeMac 或在 同步配置 中指定 SurgeMac 来启用 mihomo 支援 Surge 本身不支持的协议, 详见 https://t.me/zhetengsha/1735 . 设置节点字段 `_mihomoExternal` 为 `true` 可强制指定使用 mihomo External Proxy Program 输出该节点. 节点字段 _exec 为 mihomo 路径, 默认 /usr/local/bin/mihomo; 节点字段 _localPort 端口为初始端口号, 逐个递减, 默认为 65535. _merge 为开启仅一个 mihomo 进程+多个 listeners 的模式, 此时仅有一个 mihomo External Proxy Program, 节点会转成 SOCKS5, _mergeName 可设置这个 mihomo 节点的名字(默认为 mihomo merged); _config 对象可覆盖默认配置, _defaultNameserver(默认为 [ '180.76.76.76', '52.80.52.52', '119.28.28.28', '223.6.6.6' ]) 和 _nameserver (默认为 [ 'https://doh.pub/dns-query', 'https://dns.alidns.com/dns-query', 'https://doh-pure.onedns.net/dns-query' ]) 为数组 用于自定义 mihomo 的 default-nameserver 和 nameserver + // 24. Surge for macOS 可手动指定链接参数 target=SurgeMac 或在 同步配置 中指定 SurgeMac 来启用 mihomo 支援 Surge 本身不支持的协议, 详见 https://telegram.me/zhetengsha/1735 . 设置节点字段 `_mihomoExternal` 为 `true` 可强制指定使用 mihomo External Proxy Program 输出该节点. 节点字段 _exec 为 mihomo 路径, 默认 /usr/local/bin/mihomo; 节点字段 _localPort 端口为初始端口号, 逐个递减, 默认为 65535. _merge 为开启仅一个 mihomo 进程+多个 listeners 的模式, 此时仅有一个 mihomo External Proxy Program, 节点会转成 SOCKS5, _mergeName 可设置这个 mihomo 节点的名字(默认为 mihomo merged); _config 对象可覆盖默认配置, _defaultNameserver(默认为 [ '180.76.76.76', '52.80.52.52', '119.28.28.28', '223.6.6.6' ]) 和 _nameserver (默认为 [ 'https://doh.pub/dns-query', 'https://dns.alidns.com/dns-query', 'https://doh-pure.onedns.net/dns-query' ]) 为数组 用于自定义 mihomo 的 default-nameserver 和 nameserver // 25. VLESS xhttp URI 的 extra 默认会拆成两部分处理: mihomo 已支持的字段会解析到节点的结构化字段并在输出 URI 时重新组装; extra 里 mihomo 还不支持的字段只会保存在 `_extra_unsupported` 对象里. 输出 URI 时会用“当前结构化字段 + _extra_unsupported”一起构造 extra, 这样既不会让旧 raw extra 覆盖后来修改过的 mihomo 字段, 也能避免 VLESS URI -> VLESS URI 的流程里把暂不支持的 extra 字段丢掉. 但如果节点上显式设置了 `_extra`, 且它是字符串或普通对象, 那么输出 URI 时 extra 会直接使用 `_extra` (对象会自动转成 JSON 字符串), 不再重组结构化字段. 这是为了方便手动自定义 extra, 不用再一个个同步那些本来会影响 extra 的其它字段 // 修改/设置 extra 举例: // 如果是你写的全是 mihomo 已经支持的格式 就直接按 mihomo 的设置 @@ -145,7 +145,7 @@ function operator(proxies = [], targetPlatform, context) { // const obj = JSON.parse(body) // scriptResourceCache 缓存 - // 可参考 https://t.me/zhetengsha/1003 + // 可参考 https://telegram.me/zhetengsha/1003 // const cache = scriptResourceCache // 写入 // 第三个参数为自定义过期时间(单位: 毫秒) @@ -192,7 +192,7 @@ function operator(proxies = [], targetPlatform, context) { // DOMAIN_RESOLVERS 为内置域名解析, 详见 backend/src/core/proxy-utils/processors/index.js // ProxyUtils 为节点处理工具 - // 可参考 https://t.me/zhetengsha/1066 + // 可参考 https://telegram.me/zhetengsha/1066 // const ProxyUtils = { // parse, // 订阅解析 // process, // 节点操作/文件操作 @@ -213,7 +213,7 @@ function operator(proxies = [], targetPlatform, context) { // encrypt, // age 加密, 返回 armored 文本 // decrypt, // age 解密, 非 armored 文本会原样返回 // }, - // MMDB, // Node.js 环境 可用于模拟 Surge/Loon 的 $utils.ipasn, $utils.ipaso, $utils.geoip. 具体见 https://t.me/zhetengsha/1269 + // MMDB, // Node.js 环境 可用于模拟 Surge/Loon 的 $utils.ipasn, $utils.ipaso, $utils.geoip. 具体见 https://telegram.me/zhetengsha/1269 // isValidUUID, // 辅助判断是否为有效的 UUID // doh, // DNS over HTTPS 解析, 源码见 backend/src/utils/dns.js, 使用参考本项目里调用方式 backend/src/core/proxy-utils/processors/index.js // Buffer, // https://github.com/feross/buffer @@ -223,7 +223,7 @@ function operator(proxies = [], targetPlatform, context) { // } // 为兼容 https://github.com/xishang0128/sparkle 的 JavaScript 覆写, 也可以直接使用 `b64d`(Base64 解码), `b64e`(Base64 编码), `Buffer`, `yaml`(简单兼容了下 `yaml.parse` 和 `yaml.stringify`) - // 如果只是为了快速修改或者筛选 可以参考 脚本操作支持节点快捷脚本 https://t.me/zhetengsha/970 和 脚本筛选支持节点快捷脚本 https://t.me/zhetengsha/1009 + // 如果只是为了快速修改或者筛选 可以参考 脚本操作支持节点快捷脚本 https://telegram.me/zhetengsha/970 和 脚本筛选支持节点快捷脚本 https://telegram.me/zhetengsha/1009 // ⚠️ 注意: 函数式(即本文件这样的 function operator() {}) 和快捷操作(下面使用 $server) 只能二选一 // 示例: 给节点名添加前缀 // $server.name = `[${ProxyUtils.getISO($server.name)}] ${$server.name}` @@ -278,9 +278,9 @@ function operator(proxies = [], targetPlatform, context) { // 2. sing-box // 但是一般不需要这样用, 可参考 - // 1. https://t.me/zhetengsha/1111 - // 2. https://t.me/zhetengsha/1070 - // 3. https://t.me/zhetengsha/1241 + // 1. https://telegram.me/zhetengsha/1111 + // 2. https://telegram.me/zhetengsha/1070 + // 3. https://telegram.me/zhetengsha/1241 // let singboxProxies = await produceArtifact({ // type: 'subscription', // type: 'subscription' 或 'collection' @@ -295,9 +295,9 @@ function operator(proxies = [], targetPlatform, context) { // 3. clash.meta // 但是一般不需要这样用, 可参考 - // 1. https://t.me/zhetengsha/1111 - // 2. https://t.me/zhetengsha/1070 - // 3. https://t.me/zhetengsha/1234 + // 1. https://telegram.me/zhetengsha/1111 + // 2. https://telegram.me/zhetengsha/1070 + // 3. https://telegram.me/zhetengsha/1234 // let clashMetaProxies = await produceArtifact({ // type: 'subscription', @@ -310,7 +310,7 @@ function operator(proxies = [], targetPlatform, context) { // }) // 4. 一个比较折腾的方案: 在脚本操作中, 把内容同步到另一个 gist - // 见 https://t.me/zhetengsha/1428 + // 见 https://telegram.me/zhetengsha/1428 // // const content = ProxyUtils.produce([...proxies], platform) @@ -339,7 +339,7 @@ function operator(proxies = [], targetPlatform, context) { // flowUtils 为机场订阅流量信息处理工具 // 可参考: - // 1. https://t.me/zhetengsha/948 + // 1. https://telegram.me/zhetengsha/948 // context 为传入的上下文, 可在多个脚本中共享使用 // 其中 env 为 环境信息, 包含运行版本和其他后端信息