Fixed AgentPort+TlsOffload server crash.

Ylian Saint-Hilaire committed May 22, 2020 at 10:43 UTC 8000a61aeb01a659b765bdf05c035c15196b737b
1 file changed +1 -1
webserver.js
+1 -1
@@ -4749,7 +4749,7 @@ module.exports.CreateWebServer = function (parent, db, args, certificates) {
4749 if (obj.parent.authlog) { obj.parent.authLog('https', 'Server listening on 0.0.0.0 port ' + port + '.'); }
4750 obj.parent.updateServerState('https-agent-port', port);
4751 } else {
4752 - obj.tcpAltServer = obj.app.listen(port, function () { console.log('MeshCentral HTTP agent-only server running on port ' + port + ((agentAliasPort != null) ? (', alias port ' + agentAliasPort) : '') + '.'); });
4752 + obj.tcpAltServer = obj.agentapp.listen(port, function () { console.log('MeshCentral HTTP agent-only server running on port ' + port + ((agentAliasPort != null) ? (', alias port ' + agentAliasPort) : '') + '.'); });
4753 obj.parent.updateServerState('http-agent-port', port);
4754 }
4755 }