From 004d37dfd2bc3661b39c5168ec945839bb56862f Mon Sep 17 00:00:00 2001 From: neevek Date: Sun, 24 Nov 2024 00:25:27 +0800 Subject: [PATCH] fix missiong password and bump the version --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/quic/quic_client.rs | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index ffb9ccd..f13d59f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1500,7 +1500,7 @@ dependencies = [ [[package]] name = "rstun" version = "0.6.1" -source = "git+https://github.com/neevek/rstun#65646c94052f041792790a5a3a45ad35df6371c8" +source = "git+https://github.com/neevek/rstun?tag=release/0.6.2#ec1a175f43b8f012e29d9edd27d1aebc29c5749d" dependencies = [ "android_logger", "anyhow", diff --git a/Cargo.toml b/Cargo.toml index 1188b30..9095e13 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -28,7 +28,7 @@ lazy_static = "1.4" async-trait = "0.1" byte-pool = { git = "https://github.com/neevek/byte-pool" } # rstun = { path = "../rstun" } -rstun = { git = "https://github.com/neevek/rstun" } +rstun = { git = "https://github.com/neevek/rstun", tag = "release/0.6.2" } hyper = { version = "0.14", features = ["full"]} http = "0.2" http-body = "0.4" diff --git a/src/quic/quic_client.rs b/src/quic/quic_client.rs index e1a9b0e..e2000de 100644 --- a/src/quic/quic_client.rs +++ b/src/quic/quic_client.rs @@ -54,6 +54,7 @@ impl QuicClient { fn set_config(config: &mut rstun::ClientConfig, quic_client_config: &QuicClientConfig) { config.server_addr = quic_client_config.server_addr.to_string(); config.mode = rstun::TUNNEL_MODE_OUT; + config.password = quic_client_config.common_cfg.password.clone(); config.cert_path = quic_client_config.common_cfg.cert.clone(); config.cipher = quic_client_config.common_cfg.cipher.clone(); config.max_idle_timeout_ms = quic_client_config.common_cfg.max_idle_timeout_ms;