mirror of
				https://github.com/Ylianst/MeshCentral.git
				synced 2025-03-09 15:40:18 +00:00 
			
		
		
		
	Added basic auth.log support.
This commit is contained in:
		
							parent
							
								
									070dd05267
								
							
						
					
					
						commit
						2cb3df77c5
					
				
					 5 changed files with 38 additions and 6 deletions
				
			
		| 
						 | 
				
			
			@ -40,7 +40,11 @@ module.exports.CreateMpsServer = function (parent, db, args, certificates) {
 | 
			
		|||
        obj.server.on('resumeSession', function (id, cb) { cb(null, tlsSessionStore[id.toString('hex')] || null); });
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    obj.server.listen(args.mpsport, function () { console.log("MeshCentral Intel(R) AMT server running on " + certificates.AmtMpsName + ":" + args.mpsport + ((args.mpsaliasport != null) ? (", alias port " + args.mpsaliasport) : "") + "."); }).on("error", function (err) { console.error("ERROR: MeshCentral Intel(R) AMT server port " + args.mpsport + " is not available."); if (args.exactports) { process.exit(); } });
 | 
			
		||||
    obj.server.listen(args.mpsport, function () {
 | 
			
		||||
        console.log("MeshCentral Intel(R) AMT server running on " + certificates.AmtMpsName + ":" + args.mpsport + ((args.mpsaliasport != null) ? (", alias port " + args.mpsaliasport) : "") + ".");
 | 
			
		||||
        obj.parent.authLog('mps', 'Server listening on 0.0.0.0 port ' + args.mpsport + '.');
 | 
			
		||||
    }).on("error", function (err) { console.error("ERROR: MeshCentral Intel(R) AMT server port " + args.mpsport + " is not available."); if (args.exactports) { process.exit(); } });
 | 
			
		||||
 | 
			
		||||
    obj.server.on('tlsClientError', function (err, tlssocket) { if (args.mpsdebug) { var remoteAddress = tlssocket.remoteAddress; if (tlssocket.remoteFamily == 'IPv6') { remoteAddress = '[' + remoteAddress + ']'; } console.log('MPS:Invalid TLS connection from ' + remoteAddress + ':' + tlssocket.remotePort + '.'); } });
 | 
			
		||||
    obj.parent.updateServerState('mps-port', args.mpsport);
 | 
			
		||||
    obj.parent.updateServerState('mps-name', certificates.AmtMpsName);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue