mirror of
https://github.com/tailscale/tailscale.git
synced 2026-11-20 08:41:19 -08:00
* util/linuxfw: fix delete snat rule This pr is fixing the bug that in nftables mode setting snat-subnet-routes=false doesn't delete the masq rule in nat table. Updates #15661 Signed-off-by: Kevin Liang <[email protected]> * change index arithmetic in test to chunk Signed-off-by: Kevin Liang <[email protected]> * reuse rule creation function in rule delete Signed-off-by: Kevin Liang <[email protected]> * add test for deleting the masq rule Signed-off-by: Kevin Liang <[email protected]> --------- Signed-off-by: Kevin Liang <[email protected]>