Skip to content

Optimize outbounds sorting: prioritize regex matches, followed by others#51

Open
arkxfly wants to merge 1 commit intoSagerNet:devfrom
arkxfly:outbound_order
Open

Optimize outbounds sorting: prioritize regex matches, followed by others#51
arkxfly wants to merge 1 commit intoSagerNet:devfrom
arkxfly:outbound_order

Conversation

@arkxfly
Copy link

@arkxfly arkxfly commented Sep 27, 2025

当前是订阅在最前面,现在 selector 的默认策略是选第一个,默认选中的出口不是期望的。

配置

{
          "tag": "🇭🇰 香港",
          "type": "selector",
          "filter": "(?i)港|hk|hongkong|hong kong",
          "target": "global"
 }

优化前

{
          "tag": "🇭🇰 香港",
          "type": "selector",
           "outbounds":  [
                  "subs"
                  "hk01",
                  "hk02",
                  "hk03"
           ]
 }

优化后

{
          "tag": "🇭🇰 香港",
          "type": "selector",
           "outbounds":  [
                  "hk01",
                  "hk02",
                  "hk03",
                  "subs"
           ]
 }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant