feat: support the --no-dtls option

This commit is contained in:
Kevin Yue
2024-08-13 20:41:33 +08:00
parent c578e35178
commit c2a6a436a5
8 changed files with 31 additions and 1 deletions

View File

@@ -86,6 +86,9 @@ pub(crate) struct ConnectArgs {
#[arg(long)]
os_version: Option<String>,
#[arg(long, help="Disable DTLS and ESP")]
no_dtls: bool,
#[arg(long, help = "The HiDPI mode, useful for high resolution screens")]
hidpi: bool,
@@ -294,6 +297,7 @@ impl<'a> ConnectHandler<'a> {
.reconnect_timeout(self.args.reconnect_timeout)
.mtu(mtu)
.disable_ipv6(self.args.disable_ipv6)
.no_dtls(self.args.no_dtls)
.build()?;
let vpn = Arc::new(vpn);