netlink icon indicating copy to clipboard operation
netlink copied to clipboard

IpSetEntry how to set 0.0.0.0/0

Open graydovee opened this issue 8 months ago • 0 comments

Because of this code in buildEntryData func in ipset_linux.go

if entry.CIDR != 0 {
		data.AddChild(nl.NewRtAttr(nl.IPSET_ATTR_CIDR, nl.Uint8Attr(entry.CIDR)))
	}

If set 0 to entry.CIDR, it will be ignore.

graydovee avatar Jun 22 '25 11:06 graydovee