mirror of
https://github.com/actix/actix-extras.git
synced 2025-06-25 01:51:23 +02:00
update guide section about ssl
This commit is contained in:
@ -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();
|
||||
}
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user