fix logic error that used wss when not tls

This commit is contained in:
Rivka Segan 2024-12-07 22:27:41 +00:00 committed by Christien Rioux
parent 995f078bd6
commit aeeb12ecfd

View File

@ -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