Fix nested rule-set match cache isolation

This commit is contained in:
世界
2026-03-23 12:26:19 +08:00
parent 6913b11e0a
commit 795d1c2892
4 changed files with 15 additions and 5 deletions

View File

@@ -101,6 +101,10 @@ type InboundContext struct {
func (c *InboundContext) ResetRuleCache() {
c.IPCIDRMatchSource = false
c.IPCIDRAcceptEmpty = false
c.ResetRuleMatchCache()
}
func (c *InboundContext) ResetRuleMatchCache() {
c.SourceAddressMatch = false
c.SourcePortMatch = false
c.DestinationAddressMatch = false