diff --git a/plugins/wasm-go/pkg/matcher/rule_matcher.go b/plugins/wasm-go/pkg/matcher/rule_matcher.go index 9386dab0d..86b3d0b76 100644 --- a/plugins/wasm-go/pkg/matcher/rule_matcher.go +++ b/plugins/wasm-go/pkg/matcher/rule_matcher.go @@ -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 {