Policy Group
A policy group contains multiple policies and exposes them as one policy name. A group can contain built-in policies, proxy policies, or other policy groups.
Policy groups let you keep rules stable while changing how traffic is actually routed. For example, a rule can always point to Proxy, while the Proxy group decides which proxy server to use.
Policy groups are declared in the [Proxy Group] section.
[Proxy Group]
Proxy = select, ProxyA, ProxyB, DIRECT
Auto = url-test, ProxyA, ProxyB
Surge supports the following group types:
select: manually choose a policy.url-test: choose the policy with the best latency test result.fallback: choose the first available policy by priority.load-balance: distribute requests among available policies.subnet: choose a policy according to the current network.