run apf.ashx on agentport

Signed-off-by: si458 <simonsmith5521@gmail.com>
This commit is contained in:
si458 2025-07-14 21:37:43 +01:00
parent e891596a3e
commit 554999d07f

View File

@ -7458,6 +7458,11 @@ module.exports.CreateWebServer = function (parent, db, args, certificates, doneF
// Setup agent file downloads // Setup agent file downloads
obj.agentapp.get(url + 'agentdownload.ashx', handleAgentDownloadFile); obj.agentapp.get(url + 'agentdownload.ashx', handleAgentDownloadFile);
// Setup APF.ashx for AMT communication
if (obj.parent.mpsserver != null) {
obj.agentapp.ws(url + 'apf.ashx', function (ws, req) { obj.parent.mpsserver.onWebSocketConnection(ws, req); })
}
} }
// Setup web relay on this web server if needed // Setup web relay on this web server if needed