Support connect gateway (#306)

This commit is contained in:
Kevin Yue
2024-01-28 11:41:48 +08:00
committed by GitHub
parent 6fe6a1387a
commit b2bb35994f
14 changed files with 220 additions and 92 deletions

View File

@@ -25,6 +25,8 @@ const VERSION: &str = concat!(
struct Cli {
server: String,
#[arg(long)]
gateway: bool,
#[arg(long)]
saml_request: Option<String>,
#[arg(long, default_value = GP_USER_AGENT)]
user_agent: String,
@@ -102,6 +104,7 @@ impl Cli {
.client_os(ClientOs::from(&self.os))
.os_version(self.os_version.clone())
.ignore_tls_errors(self.ignore_tls_errors)
.is_gateway(self.gateway)
.build();
gp_params