mirror of
https://github.com/sub-store-org/Sub-Store.git
synced 2026-11-30 16:38:30 +00:00
feat: #652 调整 Loon tls-profile 相关逻辑
This commit is contained in:
8 files changed
+133
-67
No files matched your search
+1
-1
@@ -52,7 +52,7 @@ function operator(proxies = [], targetPlatform, context) {
|
||||
// 28. sing-box 1.14.0 起才有 `control_http_client` , 暂时可使用 `control-http-client` 字段设置 sing-box 的 `control_http_client`
|
||||
// 若 `control-http-client` 非空, 输出 sing-box Tailscale endpoint 时会跳过旧版拨号字段映射, 避免和 `detour`/`dialer-proxy` 等 legacy dialer options 冲突. 需要给控制面设置前置代理时, 请写到 `control-http-client.detour`(1.14.0-alpha.26 又改回去了...)
|
||||
// 29. sing-box 支持使用 `ssh-server` 给 tailscale 设置 `ssh_server`, 直接设为 `true` 或 `{ "enabled": true, "disable-pty": true, "disable-sftp": true, "disable-forwarding": true }`
|
||||
// 30. Loon 支持使用 `_loon_tls_profile` 设置 `tls-profile` 字段('default', 'chrome', 'chrome147', 'ios18', 'ios26'), 优先使用该字段, 否则从 client-fingerprint 自动转换: chrome -> chrome147, ios -> ios26. Loon 输入 chrome147 时, client-fingerprint 转成 chrome, `_loon_tls_profile` 保留原始值 chrome147
|
||||
// 30. Loon 支持使用 `_loon_tls_profile` 设置 `tls-profile` 字段('global', 'default', 'safari-ios18', 'safari-ios-26', 'chrome', 'chrome147'), 优先使用该字段, 否则从 client-fingerprint 自动转换: reality-opts.support-x25519mlkem768 为 true 时, safari/ios -> safari-ios-26, 其他值(含空值) -> chrome147; 未开启时, chrome -> chrome, safari/ios -> safari-ios18. Loon 输入 chrome/chrome147 时, client-fingerprint 转成 chrome; 输入 safari-ios18/safari-ios-26 时转成 ios; `_loon_tls_profile` 保留原始值
|
||||
// 31. `shadow-tls-password`/`shadow-tls-sni`/`shadow-tls-version` 这套旧字段已废弃. 请使用 `plugin: 'shadow-tls'` 和 `plugin-opts: { password, host, version }`
|
||||
// 32. mihomo 中 Snell shadow-tls 字段与 ss shadow-tls 字段不同, 使用的是 obfs-opts 而不是 plugin+plugin-opts, 不能与 obfs http/tls 共存. Sub-Store 内部有字段转换, 建议直接使用单行 Surge 格式 `1=snell,a.com,443,version=4,psk="1",obfs=http,obfs-host=a.com,shadow-tls-password="1",shadow-tls-sni=a.com,shadow-tls-version=3,alpn="http/1.1,h2",reuse=true` . 若想使用 JSON/JSON5/YAML 单行格式输入, 可使用 `{ "name": "1", "server": "a.com", "port": 443, "psk": "1", "version": 4, "reuse": true, "type": "snell", "obfs-opts": { "mode": "http", "host": "a.com" }, "plugin": "shadow-tls", "plugin-opts": { "host": "a.com", "password": "1", "version": 3, "alpn": [ "http/1.1", "h2" ] } }`
|
||||
// 33. sing-box Snell 出站默认允许 version 4/5/6, 其中 version 5 会按 sing-box 行为输出成 version 4. 开启“含不支持的协议”时保留 version 1/2/3/4/5/6, 并支持 version 6 通过节点字段 `quic-proxy-mode` 设置 `quic_proxy_mode`. 节点上的 `_userkey` 会输出为 sing-box 的 `userkey`
|
||||
|
||||
Reference in new issue
Block a user