fix: correct the --os parameter

This commit is contained in:
Kevin Yue
2024-08-12 21:47:39 +08:00
parent 90cd9a46f6
commit c578e35178
2 changed files with 4 additions and 1 deletions

View File

@@ -281,9 +281,11 @@ impl<'a> ConnectHandler<'a> {
None
};
let os = ClientOs::from(&self.args.os).to_openconnect_os().to_string();
let vpn = Vpn::builder(gateway, cookie)
.script(self.args.script.clone())
.user_agent(self.args.user_agent.clone())
.os(Some(os))
.certificate(self.args.certificate.clone())
.sslkey(self.args.sslkey.clone())
.key_password(self.latest_key_password.borrow().clone())