Fix extra groups

This commit is contained in:
世界 2023-12-31 19:18:35 +08:00
parent 78677c96bf
commit 97bb8fbf09
No known key found for this signature in database
GPG Key ID: CD109927C34A63C4

View File

@ -151,9 +151,9 @@ func (t *Template) renderOutbounds(metadata M.Metadata, options *option.Options,
} }
switch group.Type { switch group.Type {
case C.TypeSelector: case C.TypeSelector:
groupOutbound.SelectorOptions.Outbounds = extraTags groupOutbound.SelectorOptions.Outbounds = append(groupOutbound.SelectorOptions.Outbounds, extraTags...)
case C.TypeURLTest: case C.TypeURLTest:
groupOutbound.URLTestOptions.Outbounds = extraTags groupOutbound.URLTestOptions.Outbounds = append(groupOutbound.URLTestOptions.Outbounds, extraTags...)
} }
options.Outbounds = append(options.Outbounds, groupOutbound) options.Outbounds = append(options.Outbounds, groupOutbound)
} }