Fix generate resolve action

This commit is contained in:
世界 2024-11-18 13:22:59 +08:00
parent 4dd3530210
commit ea777c25b0
No known key found for this signature in database
GPG Key ID: CD109927C34A63C4

View File

@ -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{ options.Route.Rules = append(options.Route.Rules, option.Rule{
Type: C.RuleTypeDefault, Type: C.RuleTypeDefault,
DefaultOptions: option.DefaultRule{ DefaultOptions: option.DefaultRule{