mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
Event limit, server improvements
This commit is contained in:
parent
d455e35658
commit
348065fec3
8 changed files with 77 additions and 19 deletions
|
@ -370,7 +370,7 @@ module.exports.CreateMultiServer = function (parent, args) {
|
|||
// If we have no peering configuration, don't setup this object
|
||||
if (obj.peerConfig == null) { return null; }
|
||||
obj.serverid = obj.parent.config.peers.serverId;
|
||||
if (obj.serverid == null) { obj.serverid = require("os").hostname(); }
|
||||
if (obj.serverid == null) { obj.serverid = require("os").hostname().toLowerCase(); }
|
||||
if (obj.parent.config.peers.servers[obj.serverid] == null) { console.log("Error: Unable to peer with other servers, \"" + obj.serverid + "\" not present in peer servers list."); return null; }
|
||||
|
||||
// Return the private key of a peer server
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue