Skip to content

Commit

Permalink
Update ipset_linux.go
Browse files Browse the repository at this point in the history
Co-authored-by: yarinwinter <47352047+yarinwinter@users.noreply.github.com>
  • Loading branch information
eh-steve and yarinwinter authored Mar 8, 2021
1 parent a73f3d3 commit b6ce930
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ipset_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ func (h *Handle) ipsetAddDel(nlCmd int, setname string, entry *IPSetEntry) error
data.AddChild(&nl.Uint32Attribute{Type: nl.IPSET_ATTR_TIMEOUT | nl.NLA_F_NET_BYTEORDER, Value: *entry.Timeout})
}
if entry.MAC != nil {
nestedData := nl.NewRtAttr(nl.IPSET_ATTR_ETHER|int(nl.NLA_F_NET_BYTEORDER), entry.IP)
nestedData := nl.NewRtAttr(nl.IPSET_ATTR_ETHER|int(nl.NLA_F_NET_BYTEORDER), entry.MAC)
data.AddChild(nl.NewRtAttr(nl.IPSET_ATTR_ETHER|int(nl.NLA_F_NESTED), nestedData.Serialize()))
}
if entry.IP != nil {
Expand Down

0 comments on commit b6ce930

Please sign in to comment.