fix: correct the --os parameter

This commit is contained in:
Kevin Yue 2024-08-12 21:47:39 +08:00
parent 90cd9a46f6
commit c578e35178
No known key found for this signature in database
GPG Key ID: 4D3A6EE977B15AC4
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())

View File

@ -32,5 +32,6 @@
"prettier": "3.1.0",
"typescript": "^5.0.2",
"vite": "^4.5.3"
}
},
"packageManager": "pnpm@8.15.7"
}