Skip to content

Commit b6ce930

Browse files
Update ipset_linux.go
Co-authored-by: yarinwinter <47352047+yarinwinter@users.noreply.github.com>
1 parent a73f3d3 commit b6ce930

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ipset_linux.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ func (h *Handle) ipsetAddDel(nlCmd int, setname string, entry *IPSetEntry) error
205205
data.AddChild(&nl.Uint32Attribute{Type: nl.IPSET_ATTR_TIMEOUT | nl.NLA_F_NET_BYTEORDER, Value: *entry.Timeout})
206206
}
207207
if entry.MAC != nil {
208-
nestedData := nl.NewRtAttr(nl.IPSET_ATTR_ETHER|int(nl.NLA_F_NET_BYTEORDER), entry.IP)
208+
nestedData := nl.NewRtAttr(nl.IPSET_ATTR_ETHER|int(nl.NLA_F_NET_BYTEORDER), entry.MAC)
209209
data.AddChild(nl.NewRtAttr(nl.IPSET_ATTR_ETHER|int(nl.NLA_F_NESTED), nestedData.Serialize()))
210210
}
211211
if entry.IP != nil {

0 commit comments

Comments
 (0)