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,
|
Register: 1,
|
||||||
Data: binaryutil.BigEndian.PutUint16(53),
|
Data: binaryutil.BigEndian.PutUint16(53),
|
||||||
},
|
},
|
||||||
|
&expr.Counter{},
|
||||||
&expr.Immediate{
|
&expr.Immediate{
|
||||||
Register: 1,
|
Register: 1,
|
||||||
Data: dnsServer.AsSlice(),
|
Data: dnsServer.AsSlice(),
|
||||||
|
|
@ -706,7 +707,6 @@ func (r *autoRedirect) nftablesCreateDNSHijackRulesForFamily(
|
||||||
Family: uint32(family),
|
Family: uint32(family),
|
||||||
RegAddrMin: 1,
|
RegAddrMin: 1,
|
||||||
},
|
},
|
||||||
&expr.Counter{},
|
|
||||||
)
|
)
|
||||||
nft.AddRule(&nftables.Rule{
|
nft.AddRule(&nftables.Rule{
|
||||||
Table: table,
|
Table: table,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue