mirror of
https://github.com/alibaba/higress.git
synced 2026-06-07 19:57:34 +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 {
|
if keyCount == 0 {
|
||||||
// enable globally for empty config
|
// enable globally for empty config
|
||||||
m.hasGlobalConfig = true
|
m.hasGlobalConfig = true
|
||||||
parsePluginConfig(config, &m.globalConfig)
|
return parsePluginConfig(config, &m.globalConfig)
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
if rulesJson, ok := obj[RULES_KEY]; ok {
|
if rulesJson, ok := obj[RULES_KEY]; ok {
|
||||||
rules = rulesJson.Array()
|
rules = rulesJson.Array()
|
||||||
|
|||||||
Reference in New Issue
Block a user