mirror of
				https://github.com/gravitl/netmaker.git
				synced 2025-10-31 20:22:44 +08:00 
			
		
		
		
	commsnet else init
This commit is contained in:
		| @@ -41,8 +41,7 @@ func InitializeCommsNetwork() error { | |||||||
| 		logger.Log(1, "comms net does not exist, creating with ID,", network.NetID, "and CIDR,", network.AddressRange) | 		logger.Log(1, "comms net does not exist, creating with ID,", network.NetID, "and CIDR,", network.AddressRange) | ||||||
| 		_, err = logic.CreateNetwork(network) | 		_, err = logic.CreateNetwork(network) | ||||||
| 		return err | 		return err | ||||||
| 	} | 	} else if commsNetwork.DefaultACL == "" { | ||||||
| 	if commsNetwork.DefaultACL == "" { |  | ||||||
| 		commsNetwork.DefaultACL = "yes" | 		commsNetwork.DefaultACL = "yes" | ||||||
| 		if err = logic.SaveNetwork(&commsNetwork); err != nil { | 		if err = logic.SaveNetwork(&commsNetwork); err != nil { | ||||||
| 			logger.Log(1, "comms net default acl is set incorrectly, please manually adjust to \"yes\",", COMMS_NETID) | 			logger.Log(1, "comms net default acl is set incorrectly, please manually adjust to \"yes\",", COMMS_NETID) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 0xdcarns
					0xdcarns