From aeeb12ecfd6c38ab2d0bb20e0134dec1349a8f3d Mon Sep 17 00:00:00 2001 From: Rivka Segan <15526879-rivkasegan@users.noreply.gitlab.com> Date: Sat, 7 Dec 2024 22:27:41 +0000 Subject: [PATCH] fix logic error that used wss when not tls --- veilid-core/src/network_manager/native/protocol/ws.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/veilid-core/src/network_manager/native/protocol/ws.rs b/veilid-core/src/network_manager/native/protocol/ws.rs index 96a97b11..f7aa768c 100644 --- a/veilid-core/src/network_manager/native/protocol/ws.rs +++ b/veilid-core/src/network_manager/native/protocol/ws.rs @@ -191,9 +191,9 @@ impl WebsocketProtocolHandler { pub fn new(config: VeilidConfig, tls: bool) -> Self { let c = config.get(); let path = if tls { - format!("GET /{}", c.network.protocol.ws.path.trim_end_matches('/')) - } else { format!("GET /{}", c.network.protocol.wss.path.trim_end_matches('/')) + } else { + format!("GET /{}", c.network.protocol.ws.path.trim_end_matches('/')) }; let connection_initial_timeout_ms = if tls { c.network.tls.connection_initial_timeout_ms