mirror of
				https://github.com/Ylianst/MeshCentral.git
				synced 2025-03-09 15:40:18 +00:00 
			
		
		
		
	Improved RDP error handling, #4022
This commit is contained in:
		
							parent
							
								
									3e97d80470
								
							
						
					
					
						commit
						783ff4be0c
					
				
					 6 changed files with 311 additions and 281 deletions
				
			
		| 
						 | 
				
			
			@ -207,7 +207,8 @@ module.exports.CreateMstscRelay = function (parent, db, ws, req, args, domain) {
 | 
			
		|||
            }).on('close', function () {
 | 
			
		||||
                send(['rdp-close']);
 | 
			
		||||
            }).on('error', function (err) {
 | 
			
		||||
                send(['rdp-error', err]);
 | 
			
		||||
                if (typeof err == 'string') { send(['rdp-error', err]); }
 | 
			
		||||
                if ((typeof err == 'object') && (err.err) && (err.code)) { send(['rdp-error', err.err, err.code]); }
 | 
			
		||||
            }).connect('localhost', obj.tcpServerPort);
 | 
			
		||||
        } catch (ex) {
 | 
			
		||||
            console.log('startRdpException', ex);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue