mirror of
https://gitlab.com/veilid/veilid.git
synced 2024-12-23 14:29:41 -05:00
Merge branch 'swap-paths-for-ws-and-wss' into 'main'
fix logic error that used wss when not tls See merge request veilid/veilid!335
This commit is contained in:
commit
1387c512ce
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user