mirror of
https://github.com/alibaba/higress.git
synced 2026-03-03 16:10:48 +08:00
fix bug of empty config plugin still start (#1189)
This commit is contained in:
@@ -123,8 +123,7 @@ func (m *RuleMatcher[PluginConfig]) ParseRuleConfig(config gjson.Result,
|
||||
if keyCount == 0 {
|
||||
// enable globally for empty config
|
||||
m.hasGlobalConfig = true
|
||||
parsePluginConfig(config, &m.globalConfig)
|
||||
return nil
|
||||
return parsePluginConfig(config, &m.globalConfig)
|
||||
}
|
||||
if rulesJson, ok := obj[RULES_KEY]; ok {
|
||||
rules = rulesJson.Array()
|
||||
|
||||
Reference in New Issue
Block a user