optimize logic for empty config wasm plugin (#898)

This commit is contained in:
澄潭
2024-03-29 16:17:36 +08:00
committed by GitHub
parent ba0df237da
commit 717e3bf51f

View File

@@ -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 {