Fix: source ipcidr condition for rule IPCIDR

This commit is contained in:
yaling888 2021-09-01 00:53:13 +08:00
parent 16fcee802b
commit b23bc77001

View File

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