Fix TLS example for updated bind interface.

This commit is contained in:
Sergio Benitez 2024-04-22 17:57:34 -07:00
parent 85ca2bc01c
commit 7c50a58c99
1 changed files with 1 additions and 1 deletions

View File

@ -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
}
}