mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-11-09 13:39:42 -05:00
Early work on IP KVM integration.
This commit is contained in:
@@ -31,7 +31,7 @@ if (!String.prototype.startsWith) { String.prototype.startsWith = function (sear
|
||||
if (!String.prototype.endsWith) { String.prototype.endsWith = function (searchString, position) { var subjectString = this.toString(); if (typeof position !== 'number' || !isFinite(position) || Math.floor(position) !== position || position > subjectString.length) { position = subjectString.length; } position -= searchString.length; var lastIndex = subjectString.lastIndexOf(searchString, position); return lastIndex !== -1 && lastIndex === position; }; }
|
||||
|
||||
// Construct a HTTP server object
|
||||
module.exports.CreateWebServer = function (parent, db, args, certificates) {
|
||||
module.exports.CreateWebServer = function (parent, db, args, certificates, doneFunc) {
|
||||
var obj = {}, i = 0;
|
||||
|
||||
// Modules
|
||||
@@ -6307,6 +6307,9 @@ module.exports.CreateWebServer = function (parent, db, args, certificates) {
|
||||
|
||||
// Start on a second agent-only alternative port if needed.
|
||||
if (obj.args.agentport) { CheckListenPort(obj.args.agentport, obj.args.agentportbind, StartAltWebServer); }
|
||||
|
||||
// We are done starting the web server.
|
||||
if (doneFunc) doneFunc();
|
||||
}
|
||||
|
||||
// Perform server inner authentication
|
||||
|
||||
Reference in New Issue
Block a user