1
0
mirror of https://github.com/actix/examples synced 2025-06-28 09:50:36 +02:00

normalize ports to 8080

This commit is contained in:
Rob Ede
2022-03-06 00:41:32 +00:00
parent e8cd22d2f2
commit f27cc4b6b4
20 changed files with 122 additions and 50 deletions

View File

@ -61,8 +61,8 @@ async fn main() -> std::io::Result<()> {
})
.service(index)
})
.bind("127.0.0.1:80")? // Port 80 to listen for HTTP request
.bind_rustls("127.0.0.1:443", config)? // Port 443 to listen for HTTPS request
.bind(("127.0.0.1", 80))? // HTTP port
.bind_rustls(("127.0.0.1", 443), config)? // HTTPS port
.run()
.await
}