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:
@ -4,9 +4,9 @@ version = "1.0.0"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
actix-web = { workspace = true, features = ["rustls"] }
|
||||
actix-web = { workspace = true, features = ["rustls-0_21"] }
|
||||
env_logger.workspace = true
|
||||
futures-util.workspace = true
|
||||
log.workspace = true
|
||||
rustls = "0.20"
|
||||
rustls.workspace = true
|
||||
rustls-pemfile = "1"
|
||||
|
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user