1
0
mirror of https://github.com/Ylianst/MeshCentralRouter synced 2025-12-06 00:13:33 +00:00

Added websocket masking.

This commit is contained in:
Ylian Saint-Hilaire
2021-06-09 15:45:13 -07:00
parent 8b24474c53
commit 91432389b8
4 changed files with 227 additions and 74 deletions

View File

@@ -295,7 +295,7 @@ namespace MeshCentralRouter
if (i >= 0) { ux = ux.Substring(0, i); }
Uri u = new Uri(ux + "meshrelay.ashx?browser=1&p=5&nodeid=" + node.nodeid + "&id=" + randomIdHex + "&auth=" + server.authCookie);
wc = new webSocketClient();
wc.xdebug = server.debug;
wc.debug = server.debug;
wc.onStateChanged += Wc_onStateChanged;
wc.onBinaryData += Wc_onBinaryData;
wc.onStringData += Wc_onStringData;