diff --git a/Cargo.lock b/Cargo.lock index 5e87a5f..f797d4e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1415,7 +1415,7 @@ dependencies = [ [[package]] name = "rstun" version = "0.4.9" -source = "git+https://github.com/neevek/rstun#1db901f5b807a7326dda0d3cf55d6fdebda729c2" +source = "git+https://github.com/neevek/rstun#f8b777e4b46b5949f894518f582aefebf8e75d6c" dependencies = [ "android_logger", "anyhow", @@ -1514,8 +1514,9 @@ dependencies = [ [[package]] name = "rustls-platform-verifier" -version = "0.1.0" -source = "git+https://github.com/rustls/rustls-platform-verifier#e4194174f2b4b235ed13fc057ce89b19894321e6" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92c57b5de012da34087f2fe711fa29770f9a7abdde660b01bac3c9dbdee91b84" dependencies = [ "core-foundation", "core-foundation-sys", @@ -1524,6 +1525,7 @@ dependencies = [ "once_cell", "rustls", "rustls-native-certs", + "rustls-platform-verifier-android", "rustls-webpki", "security-framework", "security-framework-sys", @@ -1531,6 +1533,12 @@ dependencies = [ "winapi", ] +[[package]] +name = "rustls-platform-verifier-android" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "84e217e7fdc8466b5b35d30f8c0a30febd29173df4a3a0c2115d306b9c4117ad" + [[package]] name = "rustls-webpki" version = "0.101.7" diff --git a/src/quic/quic_server.rs b/src/quic/quic_server.rs index 1d2703f..c64c229 100644 --- a/src/quic/quic_server.rs +++ b/src/quic/quic_server.rs @@ -21,8 +21,8 @@ impl QuicServer { QuicServer { server } } - pub async fn bind(&mut self) -> Result { - self.server.bind().await + pub fn bind(&mut self) -> Result { + self.server.bind() } pub async fn serve(&self) { diff --git a/src/server.rs b/src/server.rs index 21c0f5d..2075f15 100644 --- a/src/server.rs +++ b/src/server.rs @@ -206,7 +206,7 @@ impl Server { common_cfg: self.common_quic_config.clone(), }; let mut quic_server = QuicServer::new(quic_server_config); - quic_server.bind().await?; + quic_server.bind()?; quic_server.serve().await; }