1
0
mirror of https://github.com/actix/actix-extras.git synced 2024-11-24 07:53:00 +01:00

update guide section about ssl

This commit is contained in:
Nikolay Kim 2017-12-19 18:36:29 -08:00
parent 0a96b8c579
commit 50b2f62c80

View File

@ -28,7 +28,8 @@ fn main() {
HttpServer::new(
|| Application::new()
.resource("/index.html", |r| r.f(index)))
.serve_ssl::<_, ()>("127.0.0.1:8080", pkcs12).unwrap();
.bind("127.0.0.1:8080").unwrap();
.serve_ssl(pkcs12).unwrap();
}
```