1
0
mirror of https://github.com/actix/examples synced 2025-06-28 09:50:36 +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

@ -62,7 +62,7 @@ async fn main() -> std::io::Result<()> {
.service(index)
})
.bind(("127.0.0.1", 80))? // HTTP port
.bind_rustls(("127.0.0.1", 443), config)? // HTTPS port
.bind_rustls_021(("127.0.0.1", 443), config)? // HTTPS port
.run()
.await
}