mirror of
https://github.com/actix/actix-web.git
synced 2025-02-18 20:15:15 +00:00
update guide section about ssl
This commit is contained in:
parent
0a96b8c579
commit
50b2f62c80
1 changed files with 2 additions and 1 deletions
|
@ -28,7 +28,8 @@ fn main() {
|
||||||
HttpServer::new(
|
HttpServer::new(
|
||||||
|| Application::new()
|
|| Application::new()
|
||||||
.resource("/index.html", |r| r.f(index)))
|
.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();
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue