1
0
mirror of https://github.com/Ylianst/MeshCentralRouter synced 2026-01-10 20:23:14 +00:00

Manual proxy improvements.

This commit is contained in:
Ylian Saint-Hilaire
2022-05-19 00:14:23 -07:00
parent b8f14536fb
commit bafc19f99f
12 changed files with 3352 additions and 1021 deletions

View File

@@ -161,7 +161,7 @@ namespace MeshCentralRouter
private async Task ConnectAsync(Uri url)
{
if (state != ConnectionStates.Disconnected) return false;
if (state != ConnectionStates.Disconnected) return;
SetState(ConnectionStates.Connecting);
this.url = url;
if (tlsCertFingerprint != null) { this.tlsCertFingerprint = tlsCertFingerprint.ToUpper(); }
@@ -500,7 +500,8 @@ namespace MeshCentralRouter
private void PongTimerCallback(object state) { SendPong(null, 0, 0); }
private void ConnectTimerCallback(object state) {
private void ConnectTimerCallback(object state)
{
// Switch from C# sockets to native sockets
if ((nativeWebSocketFirst == false) && (this.state == ConnectionStates.Connecting))
{