redirect: Fix handling of local pings

This commit is contained in:
世界 2025-04-12 12:07:56 +08:00
parent 31e29f93cc
commit 51ac6b34f1
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
2 changed files with 20 additions and 5 deletions

View file

@ -64,7 +64,7 @@ func (r *autoRedirect) setupNFTables() error {
r.nftablesCreateRedirect(nft, table, chainOutput)
chainOutputUDP := nft.AddChain(&nftables.Chain{
Name: "output_udp",
Name: "output_udp_icmp",
Table: table,
Hooknum: nftables.ChainHookOutput,
Priority: nftables.ChainPriorityMangle,