mirror of
https://github.com/tun2proxy/tun2proxy.git
synced 2025-04-19 13:29:09 +00:00
Fix #107
This commit is contained in:
parent
c1d93942cc
commit
e582d6cbec
2 changed files with 3 additions and 2 deletions
|
@ -36,6 +36,7 @@ tun2 = { version = "1.2", features = ["async"] }
|
|||
udp-stream = { version = "0.0", default-features = false }
|
||||
unicase = "2.7"
|
||||
url = "2.5"
|
||||
url-escape = "0.1"
|
||||
|
||||
[target.'cfg(target_os="linux")'.dependencies]
|
||||
serde = { version = "1", features = ["derive"] }
|
||||
|
|
|
@ -326,8 +326,8 @@ impl ArgProxy {
|
|||
let credentials = if url.username() == "" && url.password().is_none() {
|
||||
None
|
||||
} else {
|
||||
let username = String::from(url.username());
|
||||
let password = String::from(url.password().unwrap_or(""));
|
||||
let username = url_escape::decode(url.username());
|
||||
let password = url_escape::decode(url.password().unwrap_or(""));
|
||||
Some(UserKey::new(username, password))
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue