mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-22 16:48:30 +02:00
Fix "Validate TLS Certificates" option for WS and GRPC (#218)
This commit is contained in:
@@ -31,12 +31,13 @@ impl WebsocketManager {
|
||||
url: &str,
|
||||
headers: HeaderMap<HeaderValue>,
|
||||
receive_tx: mpsc::Sender<Message>,
|
||||
validate_certificates: bool,
|
||||
) -> Result<Response> {
|
||||
let connections = self.connections.clone();
|
||||
let connection_id = id.to_string();
|
||||
let tx = receive_tx.clone();
|
||||
|
||||
let (stream, response) = ws_connect(url, headers).await?;
|
||||
let (stream, response) = ws_connect(url, headers, validate_certificates).await?;
|
||||
let (write, mut read) = stream.split();
|
||||
|
||||
connections.lock().await.insert(id.to_string(), write);
|
||||
|
||||
Reference in New Issue
Block a user