mirror of
https://github.com/gravitl/netmaker.git
synced 2025-09-09 06:35:23 +08:00
prefer iptables
This commit is contained in:
parent
b2e5b239db
commit
4e61f6a586
1 changed files with 3 additions and 3 deletions
|
@ -118,10 +118,10 @@ func JoinNetwork(cfg *config.ClientConfig, privateKey string) error {
|
|||
}
|
||||
|
||||
if cfg.Node.FirewallInUse == "" {
|
||||
if ncutils.IsNFTablesPresent() {
|
||||
cfg.Node.FirewallInUse = models.FIREWALL_NFTABLES
|
||||
} else if ncutils.IsIPTablesPresent() {
|
||||
if ncutils.IsIPTablesPresent() {
|
||||
cfg.Node.FirewallInUse = models.FIREWALL_IPTABLES
|
||||
} else if ncutils.IsNFTablesPresent() {
|
||||
cfg.Node.FirewallInUse = models.FIREWALL_NFTABLES
|
||||
} else {
|
||||
cfg.Node.FirewallInUse = models.FIREWALL_NONE
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue