Skip to content

Commit

Permalink
Fix pluginHandler access
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinMa committed Feb 1, 2023
1 parent a8f89e1 commit d698760
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 d698760

Please sign in to comment.