mirror of
				https://github.com/Ylianst/MeshCentral.git
				synced 2025-03-09 15:40:18 +00:00 
			
		
		
		
	Web socket fix for web relay (#4451)
This commit is contained in:
		
							parent
							
								
									4fe394226c
								
							
						
					
					
						commit
						7404dcd40c
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -311,7 +311,7 @@ module.exports.CreateWebRelay = function (parent, db, args, domain) {
 | 
				
			||||||
        obj.ws._socket.pause();
 | 
					        obj.ws._socket.pause();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        // If the response stream is closed, close this tunnel right away
 | 
					        // If the response stream is closed, close this tunnel right away
 | 
				
			||||||
        res.socket.on('end', function () { obj.close(); });
 | 
					        obj.ws._socket.on('end', function () { obj.close(); });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        // Remove the trailing '/.websocket' if needed
 | 
					        // Remove the trailing '/.websocket' if needed
 | 
				
			||||||
        var baseurl = req.url, i = req.url.indexOf('?');
 | 
					        var baseurl = req.url, i = req.url.indexOf('?');
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue