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