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,