diff options
| author | David Lönnhager <david.l@mullvad.net> | 2025-05-21 10:06:12 +0200 |
|---|---|---|
| committer | David Lönnhager <david.l@mullvad.net> | 2025-05-21 18:54:05 +0200 |
| commit | d69a4d4df23a9969417ff511bb38ff0246fb180b (patch) | |
| tree | f664a7442ea67524482f0c6f69855cba15054351 /mullvad-masque-proxy/examples | |
| parent | 62686a3410e132554bc0830448b58048e018c1bb (diff) | |
| download | mullvadvpn-d69a4d4df23a9969417ff511bb38ff0246fb180b.tar.xz mullvadvpn-d69a4d4df23a9969417ff511bb38ff0246fb180b.zip | |
Disable SSHKEYLOGFILE by default in masque client
Diffstat (limited to 'mullvad-masque-proxy/examples')
| -rw-r--r-- | mullvad-masque-proxy/examples/masque-client.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mullvad-masque-proxy/examples/masque-client.rs b/mullvad-masque-proxy/examples/masque-client.rs index 205c198c62..304a0c0ed5 100644 --- a/mullvad-masque-proxy/examples/masque-client.rs +++ b/mullvad-masque-proxy/examples/masque-client.rs @@ -6,6 +6,7 @@ use tokio::net::UdpSocket; use std::{ net::{Ipv4Addr, SocketAddr}, path::PathBuf, + sync::Arc, time::Duration, }; @@ -76,11 +77,12 @@ async fn main() { auth, } = ClientArgs::parse(); - let tls_config = match root_cert_path { + let mut tls_config = match root_cert_path { Some(path) => mullvad_masque_proxy::client::client_tls_config_from_cert_path(path.as_ref()) .expect("Failed to get TLS config"), None => mullvad_masque_proxy::client::default_tls_config(), }; + Arc::get_mut(&mut tls_config).unwrap().key_log = Arc::new(rustls::KeyLogFile::new()); let _keylog = rustls::KeyLogFile::new(); |
