mirror of
https://github.com/rwf2/Rocket.git
synced 2025-01-31 13:52:08 +00:00
Fix TLS example for updated bind interface.
This commit is contained in:
parent
85ca2bc01c
commit
7c50a58c99
@ -60,7 +60,7 @@ impl Redirector {
|
||||
rocket::custom(&config.server)
|
||||
.manage(config)
|
||||
.mount("/", redirects)
|
||||
.bind_launch::<_, TcpListener>(addr)
|
||||
.try_launch_on(TcpListener::bind(addr))
|
||||
.await
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user