mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-07 09:41:37 +08:00
check firewall type on gateway creation
This commit is contained in:
@@ -120,8 +120,10 @@ func JoinNetwork(cfg *config.ClientConfig, privateKey string) error {
|
||||
if cfg.Node.FirewallInUse == "" {
|
||||
if ncutils.IsNFTablesPresent() {
|
||||
cfg.Node.FirewallInUse = models.FIREWALL_NFTABLES
|
||||
} else {
|
||||
} else if ncutils.IsIPTablesPresent() {
|
||||
cfg.Node.FirewallInUse = models.FIREWALL_IPTABLES
|
||||
} else {
|
||||
cfg.Node.FirewallInUse = models.FIREWALL_NONE
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user