This commit is contained in:
parent
a34aa87b02
commit
53f2105d24
1 changed files with 1 additions and 0 deletions
|
@ -86,6 +86,7 @@ async fn main() -> Result<()> {
|
||||||
|
|
||||||
let addr4 = SocketAddr::from((Ipv4Addr::UNSPECIFIED, opts.port));
|
let addr4 = SocketAddr::from((Ipv4Addr::UNSPECIFIED, opts.port));
|
||||||
let addr6 = SocketAddr::from((Ipv6Addr::UNSPECIFIED, opts.port));
|
let addr6 = SocketAddr::from((Ipv6Addr::UNSPECIFIED, opts.port));
|
||||||
|
println!("Listening on {} and {}...", addr4, addr6);
|
||||||
|
|
||||||
let server4 = Server::bind(&addr4).serve(service.clone());
|
let server4 = Server::bind(&addr4).serve(service.clone());
|
||||||
let server6 = Server::bind(&addr6).serve(service);
|
let server6 = Server::bind(&addr6).serve(service);
|
||||||
|
|
Loading…
Reference in a new issue