hotfix(firewall): prefer using ip6tables-legacy

- Fixes issue #2334
This commit is contained in:
Quentin McGaw
2024-07-08 08:57:54 +00:00
parent fe05521f2b
commit 06c9bc55d3

View File

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