From b23bc7700185c6b8b6dfaee8f582924051cd0b71 Mon Sep 17 00:00:00 2001 From: yaling888 <73897884+yaling888@users.noreply.github.com> Date: Wed, 1 Sep 2021 00:53:13 +0800 Subject: [PATCH] Fix: source ipcidr condition for rule IPCIDR --- rule/ipcidr.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rule/ipcidr.go b/rule/ipcidr.go index d2d373275..8910110f8 100644 --- a/rule/ipcidr.go +++ b/rule/ipcidr.go @@ -64,7 +64,7 @@ func NewIPCIDR(s string, adapter string, ruleExtra *C.RuleExtra, opts ...IPCIDRO if err != nil { return nil, errPayload } - ruleExtra.SourceIPs = nil + ipcidr := &IPCIDR{ ipnet: ipnet, adapter: adapter,