run apf.ashx on agentport
Signed-off-by: si458 <simonsmith5521@gmail.com>
si458 committed
Jul 14, 2025 at 21:37 UTC
554999d07f72c62406ffd98f70699ed5e1e24959
1 file changed
+5
webserver.js
+5
@@ -7458,6 +7458,11 @@ module.exports.CreateWebServer = function (parent, db, args, certificates, doneF
7458
7459
// Setup agent file downloads
7460
obj.agentapp.get(url + 'agentdownload.ashx', handleAgentDownloadFile);
7461
+
7462
+ // Setup APF.ashx for AMT communication
7463
+ if (obj.parent.mpsserver != null) {
7464
+ obj.agentapp.ws(url + 'apf.ashx', function (ws, req) { obj.parent.mpsserver.onWebSocketConnection(ws, req); })
7465
+ }
7466
}
7467
7468
// Setup web relay on this web server if needed