Browse Source

fixed comms id init

0xdcarns 3 years ago
parent
commit
3157511cd5
1 changed files with 2 additions and 1 deletions
  1. 2 1
      serverctl/serverctl.go

+ 2 - 1
serverctl/serverctl.go

@@ -39,7 +39,8 @@ func InitializeCommsNetwork() error {
 		network.DefaultUDPHolePunch = "yes"
 		network.DefaultUDPHolePunch = "yes"
 		network.IsComms = "yes"
 		network.IsComms = "yes"
 		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)
-		return logic.CreateNetwork(network)
+		_, err = logic.CreateNetwork(network)
+		return err
 	}
 	}
 	time.Sleep(time.Second << 1)
 	time.Sleep(time.Second << 1)
 	SyncServerNetwork(COMMS_NETID)
 	SyncServerNetwork(COMMS_NETID)