mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-11-07 21:02:53 -05:00
Security improvements.
This commit is contained in:
@@ -172,7 +172,7 @@ module.exports.CreateMultiServer = function (parent, args) {
|
||||
|
||||
// Get the next retry time in milliseconds
|
||||
function getConnectRetryTime() {
|
||||
if (obj.retryBackoff < 30000) { obj.retryBackoff += Math.floor((Math.random() * 3000) + 1000); }
|
||||
if (obj.retryBackoff < 30000) { obj.retryBackoff += require('crypto').randomInt(1000, 4000); }
|
||||
return obj.retryBackoff;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user