Merge pull request #413 from 21pages/proxy

add function to get proxy username, password
This commit is contained in:
RustDesk
2025-10-30 14:40:53 +08:00
committed by GitHub

View File

@@ -127,6 +127,14 @@ impl Auth {
let authorization = format!("{}:{}", &self.user_name, &self.password);
general_purpose::STANDARD.encode(authorization.as_bytes())
}
pub fn username(&self) -> &str {
&self.user_name
}
pub fn password(&self) -> &str {
&self.password
}
}
#[derive(Clone)]