Fix sing-box selector generation for dynamic group tags

This commit is contained in:
nirvanalinlei 2026-03-30 14:04:06 +08:00
parent 1090afd774
commit 77a4c894b3

View file

@ -22,7 +22,7 @@ public partial class CoreConfigSingboxService
} }
if (withSelector) if (withSelector)
{ {
var proxyTags = proxyOutboundList.Where(n => n.tag.StartsWith(Global.ProxyTag)).Select(n => n.tag).ToList(); var proxyTags = proxyOutboundList.Where(n => n.tag.StartsWith(baseTagName)).Select(n => n.tag).ToList();
if (proxyTags.Count > 1) if (proxyTags.Count > 1)
{ {
proxyOutboundList.InsertRange(0, BuildSelectorOutbounds(proxyTags, baseTagName)); proxyOutboundList.InsertRange(0, BuildSelectorOutbounds(proxyTags, baseTagName));