From ea777c25b09b3db264fe0be827ccc92b6b1e2843 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Mon, 18 Nov 2024 13:22:59 +0800 Subject: [PATCH] Fix generate resolve action --- template/render_route.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/template/render_route.go b/template/render_route.go index cb82fdb..6343e5d 100644 --- a/template/render_route.go +++ b/template/render_route.go @@ -155,7 +155,7 @@ func (t *Template) renderRoute(metadata M.Metadata, options *option.Options) err }, }) } - if disableRuleAction { + if !disableRuleAction { options.Route.Rules = append(options.Route.Rules, option.Rule{ Type: C.RuleTypeDefault, DefaultOptions: option.DefaultRule{