Explorar el Código

prefer nft over iptables

Matthew R. Kasun hace 3 años
padre
commit
d420fea08c
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  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.IsIPTablesPresent() {
-			cfg.Node.FirewallInUse = models.FIREWALL_IPTABLES
-		} else if ncutils.IsNFTablesPresent() {
+		if ncutils.IsNFTablesPresent() {
 			cfg.Node.FirewallInUse = models.FIREWALL_NFTABLES
+		} else if ncutils.IsIPTablesPresent() {
+			cfg.Node.FirewallInUse = models.FIREWALL_IPTABLES
 		} else {
 			cfg.Node.FirewallInUse = models.FIREWALL_NONE
 		}