Skip to content

Commit

Permalink
print server addrs
Browse files Browse the repository at this point in the history
  • Loading branch information
bouzuya committed Sep 5, 2020
1 parent 7c5e0cb commit c3b743c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/command/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,5 +219,9 @@ pub async fn server() -> std::io::Result<()> {
} else {
server.bind("127.0.0.1:3000")?
};
println!("listening: ");
for (addr, scheme) in server.addrs_with_scheme().iter() {
println!("- {}://{}", scheme, addr);
}
server.run().await
}

0 comments on commit c3b743c

Please sign in to comment.