check firewall type on gateway creation

This commit is contained in:
Matthew R. Kasun
2022-08-19 15:32:25 -04:00
parent 157a8f02cd
commit f536f0465c
4 changed files with 19 additions and 3 deletions

View File

@@ -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
}
}