mirror of
				https://github.com/Ylianst/MeshCentral.git
				synced 2025-03-09 15:40:18 +00:00 
			
		
		
		
	Updated MeshCentral Router
This commit is contained in:
		
							parent
							
								
									119bf305ae
								
							
						
					
					
						commit
						c06715682e
					
				
					 2 changed files with 4 additions and 1 deletions
				
			
		|  | @ -1188,7 +1188,10 @@ function CreateLocalRelayEx(parent, ws, req, domain, user, cookie) { | |||
|     ws.flushSink = function () { try { ws._socket.resume(); } catch (ex) { console.log(ex); } }; | ||||
| 
 | ||||
|     // When data is received from the mesh relay web socket
 | ||||
|     ws.on('message', function (data) { if (typeof data != 'string') { try { ws._socket.pause(); obj.client.write(data, ws.flushSink); } catch (ex) { } } }); // Perform relay
 | ||||
|     ws.on('message', function (data) { | ||||
|         if (typeof data != 'string') { try { ws._socket.pause(); obj.client.write(data, ws.flushSink); } catch (ex) { } } | ||||
|         else { console.log("RelayString: " + data); } | ||||
|     }); // Perform relay
 | ||||
| 
 | ||||
|     // If error, close both sides of the relay.
 | ||||
|     ws.on('error', function (err) { parent.relaySessionErrorCount++; obj.close(); }); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue