1
0
mirror of https://github.com/actix/examples synced 2025-06-26 17:17:42 +02:00

use rustls v0.21

This commit is contained in:
Rob Ede
2023-08-29 18:28:12 +01:00
parent 9ac242138a
commit cfea68d5c7
12 changed files with 66 additions and 50 deletions

View File

@ -5,8 +5,8 @@ edition = "2021"
[dependencies]
actix-tls.workspace = true
actix-web = { workspace = true, features = ["rustls"] }
actix-web = { workspace = true, features = ["rustls-0_21"] }
env_logger.workspace = true
log.workspace = true
rustls = "0.20"
rustls.workspace = true
rustls-pemfile = "1"

View File

@ -108,7 +108,7 @@ async fn main() -> std::io::Result<()> {
HttpServer::new(|| App::new().default_service(web::to(route_whoami)))
.on_connect(get_client_cert)
.bind(("localhost", 8080))?
.bind_rustls(("localhost", 8443), config)?
.bind_rustls_021(("localhost", 8443), config)?
.workers(1)
.run()
.await