From 97bb8fbf094a56cbd28ca24c668e4080205875b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Sun, 31 Dec 2023 19:18:35 +0800 Subject: [PATCH] Fix extra groups --- template/render_outbounds.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/template/render_outbounds.go b/template/render_outbounds.go index 86dff63..1b96b21 100644 --- a/template/render_outbounds.go +++ b/template/render_outbounds.go @@ -151,9 +151,9 @@ func (t *Template) renderOutbounds(metadata M.Metadata, options *option.Options, } switch group.Type { case C.TypeSelector: - groupOutbound.SelectorOptions.Outbounds = extraTags + groupOutbound.SelectorOptions.Outbounds = append(groupOutbound.SelectorOptions.Outbounds, extraTags...) case C.TypeURLTest: - groupOutbound.URLTestOptions.Outbounds = extraTags + groupOutbound.URLTestOptions.Outbounds = append(groupOutbound.URLTestOptions.Outbounds, extraTags...) } options.Outbounds = append(options.Outbounds, groupOutbound) }