Ver código fonte

prefer iptables

Matthew R. Kasun 3 anos atrás
pai
commit
dd1ec51822
1 arquivos alterados com 3 adições e 3 exclusões
  1. 3 3
      netclient/functions/join.go

+ 3 - 3
netclient/functions/join.go

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