mirror of
https://github.com/alibaba/higress.git
synced 2026-06-09 12:47:28 +08:00
optimize logic for empty config wasm plugin (#898)
This commit is contained in:
@@ -98,6 +98,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 nil
|
return nil
|
||||||
}
|
}
|
||||||
if rulesJson, ok := obj[RULES_KEY]; ok {
|
if rulesJson, ok := obj[RULES_KEY]; ok {
|
||||||
|
|||||||
Reference in New Issue
Block a user