added comms checks

This commit is contained in:
0xdcarns
2022-02-18 19:37:12 -05:00
parent 7e964416fc
commit 6028e1b6de
6 changed files with 33 additions and 10 deletions
+2 -1
View File
@@ -40,7 +40,6 @@ func InitializeCommsNetwork() error {
} else {
SyncServerNetwork(COMMS_NETID)
}
logger.Log(1, "comms network initialized")
return nil
}
@@ -53,9 +52,11 @@ func setCommsID() {
logger.FatalLog("something went wrong when configuring comms id")
}
COMMS_NETID = commsid
os.Setenv("COMMS_ID", COMMS_NETID)
return
}
COMMS_NETID = currentid
os.Setenv("COMMS_ID", COMMS_NETID)
}
// InitServerNetclient - intializes the server netclient