redirect: Fix counter position
This commit is contained in:
parent
51ac6b34f1
commit
f13cd94aa0
1 changed files with 1 additions and 1 deletions
|
|
@ -697,6 +697,7 @@ func (r *autoRedirect) nftablesCreateDNSHijackRulesForFamily(
|
|||
Register: 1,
|
||||
Data: binaryutil.BigEndian.PutUint16(53),
|
||||
},
|
||||
&expr.Counter{},
|
||||
&expr.Immediate{
|
||||
Register: 1,
|
||||
Data: dnsServer.AsSlice(),
|
||||
|
|
@ -706,7 +707,6 @@ func (r *autoRedirect) nftablesCreateDNSHijackRulesForFamily(
|
|||
Family: uint32(family),
|
||||
RegAddrMin: 1,
|
||||
},
|
||||
&expr.Counter{},
|
||||
)
|
||||
nft.AddRule(&nftables.Rule{
|
||||
Table: table,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue