mirror of
https://github.com/gravitl/netmaker.git
synced 2025-09-07 21:54:54 +08:00
commsnet else init
This commit is contained in:
parent
d738a35eaf
commit
772e5e6e80
1 changed files with 1 additions and 2 deletions
|
@ -41,8 +41,7 @@ func InitializeCommsNetwork() error {
|
|||
logger.Log(1, "comms net does not exist, creating with ID,", network.NetID, "and CIDR,", network.AddressRange)
|
||||
_, err = logic.CreateNetwork(network)
|
||||
return err
|
||||
}
|
||||
if commsNetwork.DefaultACL == "" {
|
||||
} else if commsNetwork.DefaultACL == "" {
|
||||
commsNetwork.DefaultACL = "yes"
|
||||
if err = logic.SaveNetwork(&commsNetwork); err != nil {
|
||||
logger.Log(1, "comms net default acl is set incorrectly, please manually adjust to \"yes\",", COMMS_NETID)
|
||||
|
|
Loading…
Add table
Reference in a new issue