surge 如何添加多个机场

262 天前
 Hanson666

surge for MAC ,怎么在原来一个机场的情况下再添加多个机场?是需要在文本配置里面把机场的配置重新复制一遍,然后改新机场订阅链接吗?

2289 次点击
所在节点    问与答
11 条回复
bailitusu
262 天前
[Proxy Group]里面多定义几个 External 策略组就好了。

https://surge.mitsea.com/policy/group#external-ce-lve-zu
gp0119
262 天前
```
[Proxy Group]
# 手动选择
机场 1 = select, no-alert=0, hidden=0, include-all-proxies=1, update-interval=0, policy-path=你的订阅链接
机场 2 = select, no-alert=0, hidden=0, include-all-proxies=1, update-interval=0, policy-path=你的订阅链接
# 香港分流
香港 = select, no-alert=0, hidden=0, include-all-proxies=0, update-interval=0, policy-regex-filter=(?=.*(🇭🇰|港|HK|(?i)Hong))^((?!(3 倍)).)*$, include-other-group=机场 1,机场 2
```
Rrrrrr
262 天前
有 subStore 方法,也有自己加策略组的方法
hfl1995
262 天前
谷歌搜一下「节点转换」,可以添加多个机场,用回车分割
4Qd5zQCm26
262 天前
inhzus
262 天前
可以参考我的配置。Tag 、Dler 是两个机场的订阅,透过 include-other-group 和 policy-regex-filter 把这两个订阅合并、过滤为一个规则集(当然也可以用 GUI 配置),最后把这些添加到手动选择规则集中,就可以方便地切换了

[Proxy Group]
Proxies = select, Singapore, Japan, Tag, Dler, no-alert=0, hidden=0, include-all-proxies=0
Singapore = select, update-interval=0, policy-regex-filter=新加坡, no-alert=0, hidden=0, include-all-proxies=0, include-other-group="Tag, Dler"
HK = select, policy-regex-filter=香港, no-alert=0, hidden=0, include-all-proxies=0, include-other-group="Tag, Dler"
Japan = select, policy-regex-filter=日本, include-all-proxies=0, include-other-group="Tag, Dler", no-alert=0, hidden=0
Tag = select, policy-path=https://a.com, update-interval=0, no-alert=0, hidden=0, include-all-proxies=0
Dler = select, policy-path=https://b.com, update-interval=0, no-alert=0, hidden=0, include-all-proxies=0
JensenQian
262 天前
sub store 自己搞一个
zhady009
261 天前
Hanson666
259 天前
感谢楼上的老铁们,已完成规则。
Ccf
98 天前
@inhzus mac 上怎么切换?我现在貌似策略组下拉列表里是默认选第一个的。 还有 rule 部分怎么弄的?
chagpt 帮我弄的:[Rule]
DOMAIN,apps.apple.com,nekov
DOMAIN-SUFFIX,vercel.app,getml
DOMAIN-SUFFIX,sg,Singapore
DOMAIN-SUFFIX,hk,HK
DOMAIN-SUFFIX,jp,Japan
DOMAIN-SUFFIX,ls.apple.com,DIRECT // Apple Maps
DOMAIN-SUFFIX,store.apple.com,DIRECT // Apple Store Online
RULE-SET,SYSTEM,getml
RULE-SET,LAN,DIRECT
GEOIP,CN,DIRECT
FINAL,nekov,dns-failed


@Hanson666 能贴出来参考下么?
YiyangDing
76 天前
@gp0119 #2 最后写的有点问题,include-other-group 的值需要加双引号

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/967527

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX