Skip to content

Commit

Permalink
Merge pull request #4952 from MartinMa/feature/custom-routes-pr
Browse files Browse the repository at this point in the history
Fix pluginHandler access
  • Loading branch information
Ylianst authored Feb 3, 2023
2 parents 7a56495 + d698760 commit e56149f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webserver.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit e56149f

Please sign in to comment.