mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-05 08:47:35 +08:00
prefer iptables
This commit is contained in:
@@ -118,10 +118,10 @@ func JoinNetwork(cfg *config.ClientConfig, privateKey string) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if cfg.Node.FirewallInUse == "" {
|
if cfg.Node.FirewallInUse == "" {
|
||||||
if ncutils.IsNFTablesPresent() {
|
if ncutils.IsIPTablesPresent() {
|
||||||
cfg.Node.FirewallInUse = models.FIREWALL_NFTABLES
|
|
||||||
} else if ncutils.IsIPTablesPresent() {
|
|
||||||
cfg.Node.FirewallInUse = models.FIREWALL_IPTABLES
|
cfg.Node.FirewallInUse = models.FIREWALL_IPTABLES
|
||||||
|
} else if ncutils.IsNFTablesPresent() {
|
||||||
|
cfg.Node.FirewallInUse = models.FIREWALL_NFTABLES
|
||||||
} else {
|
} else {
|
||||||
cfg.Node.FirewallInUse = models.FIREWALL_NONE
|
cfg.Node.FirewallInUse = models.FIREWALL_NONE
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user