hotfix(firewall): prefer ip6tables (nft) instead of ip6tables-legacy

This commit is contained in:
Quentin McGaw
2024-08-05 14:01:27 +00:00
parent 2a9ab29e7d
commit 74ea1a0f5a

View File

@@ -15,7 +15,7 @@ import (
// empty string path is returned.
func findIP6tablesSupported(ctx context.Context, runner command.Runner) (
ip6tablesPath string, err error) {
ip6tablesPath, err = checkIptablesSupport(ctx, runner, "ip6tables-legacy", "ip6tables", "ip6tables-nft")
ip6tablesPath, err = checkIptablesSupport(ctx, runner, "ip6tables", "ip6tables-nft", "ip6tables-legacy")
if errors.Is(err, ErrIPTablesNotSupported) {
return "", nil
} else if err != nil {