feat: Surge for macOS 设置节点字段 _mihomoExternal 为 true 可强制指定使用 mihomo External Proxy Program 输出该节点

This commit is contained in:
xream committed 2026-03-31 15:56:49 +08:00
1 parent 129976467d
commit dea88520fe
4 files changed
+27 -1

No files matched your search

+1
View File
@@ -35,6 +35,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 部分字段自动转换
// 22. `sing-box` 支持使用完整的 `_curve_preferences` 结构设置 `tls` 的 `curve_preferences`
// 23. `interface-name` 指定流量出站接口 只给 Surge 用的话, `interface` 也可以
// 24. Surge for macOS 可手动指定链接参数 target=SurgeMac 或在 同步配置 中指定 SurgeMac 来启用 mihomo 支援 Surge 本身不支持的协议. 设置节点字段 `_mihomoExternal` 为 `true` 可强制指定使用 mihomo External Proxy Program 输出该节点
// require 为 Node.js 的 require, 在 Node.js 运行环境下 可以用来引入模块
// 例如在 Node.js 环境下, 将文件内容写入 /tmp/1.txt 文件