mirror of
https://github.com/Ylianst/MeshCentralRouter
synced 2025-12-06 00:13:33 +00:00
Switched back to using built-in sockets with compression.
This commit is contained in:
@@ -677,7 +677,7 @@ namespace MeshCentralRouter
|
||||
|
||||
// Get login key
|
||||
string url = jsonAction["url"] + "&auth=" + authCookie;
|
||||
if (url.StartsWith("*/")) { url = "wss://" + wsurl.Authority + url.Substring(1); }
|
||||
if (url.StartsWith("*/")) { url = "https://" + wsurl.Authority + url.Substring(1); }
|
||||
string loginkey = getValueFromQueryString(wsurl.Query, "key");
|
||||
if (loginkey != null) { url += ("&key=" + loginkey); }
|
||||
|
||||
|
||||
@@ -187,7 +187,7 @@ namespace MeshCentralRouter
|
||||
if (tlsCertFingerprint != null) { this.tlsCertFingerprint = tlsCertFingerprint.ToUpper(); }
|
||||
if (tlsCertFingerprint2 != null) { this.tlsCertFingerprint2 = tlsCertFingerprint2.ToUpper(); }
|
||||
|
||||
if (nativeWebSocketFirst) { try { ws = new ClientWebSocket(); } catch (Exception) { } }
|
||||
//if (nativeWebSocketFirst) { try { ws = new ClientWebSocket(); } catch (Exception) { } }
|
||||
if (ws != null)
|
||||
{
|
||||
// Use Windows native websockets
|
||||
|
||||
Reference in New Issue
Block a user