Bump version v7.9.2

This commit is contained in:
Σrebe - Romain GERARD 2023-11-09 17:19:08 +01:00
parent 91d1215d5b
commit 71a937e926
No known key found for this signature in database
GPG key ID: 7A42B4B97E0332F4
3 changed files with 3 additions and 2 deletions

2
Cargo.lock generated
View file

@ -1614,7 +1614,7 @@ checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538"
[[package]]
name = "wstunnel"
version = "7.9.1"
version = "7.9.2"
dependencies = [
"ahash",
"anyhow",

View file

@ -1,6 +1,6 @@
[package]
name = "wstunnel"
version = "7.9.1"
version = "7.9.2"
edition = "2021"
repository = "https://github.com/erebe/wstunnel.git"

View file

@ -112,6 +112,7 @@ pub async fn connect_with_http_proxy(
info!("Connected to http proxy {}:{}", proxy_host, proxy_port);
let authorization = if let Some((user, password)) = proxy.password().map(|p| (proxy.username(), p)) {
let user = urlencoding::decode(user).with_context(|| format!("Cannot urldecode proxy user: {}", user))?;
let password =
urlencoding::decode(password).with_context(|| format!("Cannot urldecode proxy password: {}", password))?;
let creds = base64::engine::general_purpose::STANDARD.encode(format!("{}:{}", user, password));