From d698760d30321e37ba375176f765b77200fe086f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20M=C3=A4dler?= Date: Wed, 1 Feb 2023 14:04:23 +0100 Subject: [PATCH] Fix pluginHandler access --- webserver.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webserver.js b/webserver.js index 19e1d005..508e8d05 100644 --- a/webserver.js +++ b/webserver.js @@ -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) {