mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-01-25 21:53:14 -05:00
Added maxfragmentsize for webrtc datachannel
This commit is contained in:
parent
20303607f3
commit
cf69bf0169
@ -2037,6 +2037,7 @@ function createMeshCore(agent) {
|
|||||||
ws.webrtc.on('disconnected', function () { /*sendConsoleText('Tunnel #' + this.websocket.tunnel.index + ' WebRTC disconnected');*/ });
|
ws.webrtc.on('disconnected', function () { /*sendConsoleText('Tunnel #' + this.websocket.tunnel.index + ' WebRTC disconnected');*/ });
|
||||||
ws.webrtc.on('dataChannel', function (rtcchannel) {
|
ws.webrtc.on('dataChannel', function (rtcchannel) {
|
||||||
//sendConsoleText('WebRTC Datachannel open, protocol: ' + this.websocket.httprequest.protocol);
|
//sendConsoleText('WebRTC Datachannel open, protocol: ' + this.websocket.httprequest.protocol);
|
||||||
|
rtcchannel.maxFragmentSize = 32768;
|
||||||
rtcchannel.xrtc = this;
|
rtcchannel.xrtc = this;
|
||||||
rtcchannel.websocket = this.websocket;
|
rtcchannel.websocket = this.websocket;
|
||||||
this.rtcchannel = rtcchannel;
|
this.rtcchannel = rtcchannel;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user