mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-11-22 12:52:50 +03:00
fix peering traffic #5714
Signed-off-by: Simon Smith <simonsmith5521@gmail.com>
This commit is contained in:
parent
cf23a3df81
commit
7c79dbcda1
@ -2763,6 +2763,7 @@ function onTunnelData(data)
|
||||
// Handle tunnel data
|
||||
if (this.httprequest.protocol == 0) { // 1 = Terminal (admin), 2 = Desktop, 5 = Files, 6 = PowerShell (admin), 7 = Plugin Data Exchange, 8 = Terminal (user), 9 = PowerShell (user), 10 = FileTransfer
|
||||
// Take a look at the protocol
|
||||
if (data[0] == 123) { data = data.toString(); } // convert to string to fix binary data coming from peer servers
|
||||
if ((data.length > 3) && (data[0] == '{')) { onTunnelControlData(data, this); return; }
|
||||
this.httprequest.protocol = parseInt(data);
|
||||
if (typeof this.httprequest.protocol != 'number') { this.httprequest.protocol = 0; }
|
||||
|
Loading…
Reference in New Issue
Block a user