From 1939973c2e9b5cee18c501a4c10f4d953246ca01 Mon Sep 17 00:00:00 2001 From: Givi Khojanashvili Date: Thu, 1 Jun 2023 19:51:13 +0400 Subject: [PATCH] Use by default nftables on the linux systems (#922) --- client/internal/acl/manager_create_linux.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/client/internal/acl/manager_create_linux.go b/client/internal/acl/manager_create_linux.go index 1c3767397..536f1ce4d 100644 --- a/client/internal/acl/manager_create_linux.go +++ b/client/internal/acl/manager_create_linux.go @@ -19,11 +19,11 @@ func Create(iface iFaceMapper) (manager *DefaultManager, err error) { return nil, err } } else { - if fm, err = iptables.Create(iface.Name()); err != nil { - log.Debugf("failed to create iptables manager: %s", err) - // fallback to nftables - if fm, err = nftables.Create(iface.Name()); err != nil { - log.Errorf("failed to create nftables manager: %s", err) + if fm, err = nftables.Create(iface.Name()); err != nil { + log.Debugf("failed to create nftables manager: %s", err) + // fallback to iptables + if fm, err = iptables.Create(iface.Name()); err != nil { + log.Errorf("failed to create iptables manager: %s", err) return nil, err } }