mirror of
https://github.com/rustdesk/hbb_common.git
synced 2026-05-19 16:20:22 +00:00
Merge pull request #413 from 21pages/proxy
add function to get proxy username, password
This commit is contained in:
@@ -127,6 +127,14 @@ impl Auth {
|
|||||||
let authorization = format!("{}:{}", &self.user_name, &self.password);
|
let authorization = format!("{}:{}", &self.user_name, &self.password);
|
||||||
general_purpose::STANDARD.encode(authorization.as_bytes())
|
general_purpose::STANDARD.encode(authorization.as_bytes())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn username(&self) -> &str {
|
||||||
|
&self.user_name
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn password(&self) -> &str {
|
||||||
|
&self.password
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Clone)]
|
#[derive(Clone)]
|
||||||
|
|||||||
Reference in New Issue
Block a user