Skip to content

Commit f13cd94

Browse files
committed
redirect: Fix counter position
1 parent 51ac6b3 commit f13cd94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

redirect_nftables_rules.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -697,6 +697,7 @@ func (r *autoRedirect) nftablesCreateDNSHijackRulesForFamily(
697697
Register: 1,
698698
Data: binaryutil.BigEndian.PutUint16(53),
699699
},
700+
&expr.Counter{},
700701
&expr.Immediate{
701702
Register: 1,
702703
Data: dnsServer.AsSlice(),
@@ -706,7 +707,6 @@ func (r *autoRedirect) nftablesCreateDNSHijackRulesForFamily(
706707
Family: uint32(family),
707708
RegAddrMin: 1,
708709
},
709-
&expr.Counter{},
710710
)
711711
nft.AddRule(&nftables.Rule{
712712
Table: table,

0 commit comments

Comments
 (0)