mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
Fix for Node 11.10 deprecation of require('constants').
This commit is contained in:
parent
887f2ba22e
commit
93367b159d
3 changed files with 4 additions and 4 deletions
|
@ -23,7 +23,7 @@ module.exports.CreateMpsServer = function (parent, db, args, certificates) {
|
|||
obj.ciraConnections = {};
|
||||
var tlsSessionStore = {}; // Store TLS session information for quick resume.
|
||||
var tlsSessionStoreCount = 0; // Number of cached TLS session information in store.
|
||||
const constants = require('constants');
|
||||
const constants = (require('crypto').constants ? require('crypto').constants : require('constants')); // require('constants') is deprecated in Node 11.10, use require('crypto').constants instead.
|
||||
const common = require("./common.js");
|
||||
const net = require("net");
|
||||
const tls = require("tls");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue