Fix nftables single include_uid not working
The single UID code path incorrectly used BigEndian to encode the UID for nft_cmp, but the kernel stores SKUIDs in native endian.
This commit is contained in:
parent
0329538ecd
commit
82d14b26de
1 changed files with 1 additions and 1 deletions
|
|
@ -424,7 +424,7 @@ func (r *autoRedirect) nftablesCreateExcludeRules(nft *nftables.Conn, table *nft
|
||||||
&expr.Cmp{
|
&expr.Cmp{
|
||||||
Op: expr.CmpOpNeq,
|
Op: expr.CmpOpNeq,
|
||||||
Register: 1,
|
Register: 1,
|
||||||
Data: binaryutil.BigEndian.PutUint32(r.tunOptions.IncludeUID[0].Start),
|
Data: binaryutil.NativeEndian.PutUint32(r.tunOptions.IncludeUID[0].Start),
|
||||||
},
|
},
|
||||||
&expr.Counter{},
|
&expr.Counter{},
|
||||||
&expr.Verdict{
|
&expr.Verdict{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue