1
0
mirror of https://github.com/Ylianst/MeshCentralRouter synced 2026-01-06 02:03:14 +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

@@ -212,7 +212,7 @@ namespace MeshCentralRouter
webSocketClient wc = new webSocketClient();
Uri wsurl = new Uri(url + "&auth=" + Uri.EscapeDataString(parent.authCookie));
Debug("#" + counter + ": Connecting web socket to: " + wsurl.ToString());
wc.xdebug = xdebug;
wc.debug = xdebug;
wc.Start(wsurl, certhash);
wc.tag = client;
wc.id = counter;
@@ -226,7 +226,7 @@ namespace MeshCentralRouter
webSocketClient wc = new webSocketClient();
Uri wsurl = new Uri(url + "&auth=" + Uri.EscapeDataString(parent.authCookie));
Debug("#" + counter + ": Connecting web socket to: " + wsurl.ToString());
wc.xdebug = xdebug;
wc.debug = xdebug;
wc.Start(wsurl, certhash);
wc.tag = client;
wc.id = counter;