feat(client): adds windows installer and InsecureSkipTlsVerify flag

This commit is contained in:
2026-07-20 15:01:15 +02:00
parent 72051aae0e
commit 1cfe53dbe2
9 changed files with 231 additions and 1 deletions
+5
View File
@@ -41,6 +41,11 @@ internal sealed class TunnelClient
using var socket = new ClientWebSocket();
socket.Options.KeepAliveInterval = TimeSpan.FromSeconds(30);
if (_options.InsecureSkipTlsVerify)
{
socket.Options.RemoteCertificateValidationCallback = static (_, _, _, _) => true;
}
if (!string.IsNullOrWhiteSpace(_options.Token))
{
socket.Options.SetRequestHeader(ProtocolConstants.TokenHeader, _options.Token);