mirror of
https://gitlab.com/veilid/veilid.git
synced 2025-07-01 01:57:30 -04:00
fix logic error that used wss when not tls
This commit is contained in:
parent
995f078bd6
commit
aeeb12ecfd
1 changed files with 2 additions and 2 deletions
|
@ -191,9 +191,9 @@ impl WebsocketProtocolHandler {
|
||||||
pub fn new(config: VeilidConfig, tls: bool) -> Self {
|
pub fn new(config: VeilidConfig, tls: bool) -> Self {
|
||||||
let c = config.get();
|
let c = config.get();
|
||||||
let path = if tls {
|
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('/'))
|
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 {
|
let connection_initial_timeout_ms = if tls {
|
||||||
c.network.tls.connection_initial_timeout_ms
|
c.network.tls.connection_initial_timeout_ms
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue