mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2025-05-20 07:26:58 -04:00
refactor: encrypt the sensitive data
This commit is contained in:
@@ -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> {
|
||||
|
Reference in New Issue
Block a user