Skip to content

Commit

Permalink
chore: add comment
Browse files Browse the repository at this point in the history
Signed-off-by: black-desk <[email protected]>
  • Loading branch information
black-desk committed Oct 25, 2023
1 parent 0ca79d8 commit 19010ed
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/nftman/private.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,10 @@ func (t *NFTManager) addTproxyChainForTProxy(
Data: []byte{unix.IPPROTO_TCP},
}
} else {
// NOTE:
// Only add set when we use it, otherwise we will get an EINVAL
// https://github.com/torvalds/linux/blob/4f82870119a46b0d04d91ef4697ac4977a255a9d/net/netfilter/nf_tables_api.c#L9881

err = conn.AddSet(t.protoSet, t.protoSetElement)
if err != nil {
return
Expand Down

0 comments on commit 19010ed

Please sign in to comment.