refactor: encrypt the sensitive data

This commit is contained in:
Kevin Yue
2023-07-22 07:33:53 +08:00
parent bf96a88e21
commit 601f422863
40 changed files with 1274 additions and 275 deletions

View File

@@ -201,8 +201,14 @@ impl Client {
})
}
pub async fn connect(&self, server: String, cookie: String) -> Result<(), ServerApiError> {
self.send_command(Connect::new(server, cookie).into()).await
pub async fn connect(
&self,
server: String,
cookie: String,
user_agent: String,
) -> Result<(), ServerApiError> {
self.send_command(Connect::new(server, cookie, user_agent).into())
.await
}
pub async fn disconnect(&self) -> Result<(), ServerApiError> {