mirror of
https://github.com/tun2proxy/tun2proxy.git
synced 2025-05-14 05:52:48 +00:00
Fix #107
This commit is contained in:
parent
c1d93942cc
commit
e582d6cbec
2 changed files with 3 additions and 2 deletions
|
@ -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
Add a link
Reference in a new issue