forked from forktown/watch-party
Print the binding address when running
This commit is contained in:
parent
9e49ed1820
commit
4b7ad17588
1 changed files with 2 additions and 0 deletions
|
@ -144,5 +144,7 @@ async fn main() {
|
||||||
.ok()
|
.ok()
|
||||||
.and_then(|s| s.parse::<u16>().ok())
|
.and_then(|s| s.parse::<u16>().ok())
|
||||||
.unwrap_or(3000);
|
.unwrap_or(3000);
|
||||||
|
|
||||||
|
println!("Listening at http://{}:{} ...", &host, &port);
|
||||||
warb::serve(routes).run((host, port)).await;
|
warb::serve(routes).run((host, port)).await;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue