mirror of
https://github.com/netbirdio/netbird.git
synced 2024-12-26 16:49:10 +01:00
Use by default nftables on the linux systems (#922)
This commit is contained in:
parent
3e9b46f8d8
commit
1939973c2e
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user