Merge pull request #4952 from MartinMa/feature/custom-routes-pr

Fix pluginHandler access
This commit is contained in:
Ylian Saint-Hilaire 2023-02-03 11:56:41 -08:00 committed by GitHub
commit e56149f162
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -6341,8 +6341,8 @@ module.exports.CreateWebServer = function (parent, db, args, certificates, doneF
}
// Setup all HTTP handlers
if (parent.parent.pluginHandler != null) {
parent.parent.pluginHandler.callHook('hook_setupHttpHandlers', obj, parent);
if (parent.pluginHandler != null) {
parent.pluginHandler.callHook('hook_setupHttpHandlers', obj, parent);
}
if (parent.multiServer != null) { obj.app.ws('/meshserver.ashx', function (ws, req) { parent.multiServer.CreatePeerInServer(parent.multiServer, ws, req, obj.args.tlsoffload == null); }); }
for (var i in parent.config.domains) {