summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDavid Lönnhager <david.l@mullvad.net>2025-05-02 16:51:23 +0200
committerDavid Lönnhager <david.l@mullvad.net>2025-05-05 13:02:29 +0200
commit591ea62b522d1ae0f5a9d2ad926f6ed0cdc15e1d (patch)
tree3b1a603b0d3a33a004fb17852cceffce9734b710
parentee380d68e2e12ef52b49cdb7439e3d2bb1637bcf (diff)
downloadmullvadvpn-591ea62b522d1ae0f5a9d2ad926f6ed0cdc15e1d.tar.xz
mullvadvpn-591ea62b522d1ae0f5a9d2ad926f6ed0cdc15e1d.zip
Set auth header in tunnel-obfuscation
-rw-r--r--tunnel-obfuscation/src/quic.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/tunnel-obfuscation/src/quic.rs b/tunnel-obfuscation/src/quic.rs
index 11a315554d..c72a3b84fd 100644
--- a/tunnel-obfuscation/src/quic.rs
+++ b/tunnel-obfuscation/src/quic.rs
@@ -12,6 +12,9 @@ use crate::Obfuscator;
type Result<T> = std::result::Result<T, Error>;
+/// Authentication header to set for the CONNECT request
+const AUTH_HEADER: &str = "Bearer test";
+
#[derive(thiserror::Error, Debug)]
pub enum Error {
#[error("Failed to bind UDP socket")]
@@ -48,7 +51,8 @@ impl Quic {
.local_addr((Ipv4Addr::UNSPECIFIED, 0).into())
.server_addr(settings.quic_endpoint)
.server_host(settings.hostname.clone())
- .target_addr(settings.wireguard_endpoint);
+ .target_addr(settings.wireguard_endpoint)
+ .auth_header(Some(AUTH_HEADER.to_owned()));
let task = tokio::spawn(async move {
let client = Client::connect(config_builder.build())