Add a message when the server is ready

This commit is contained in:
Emi Simpson 2021-11-09 13:10:40 -05:00
parent 8ba6d720f8
commit 7b96cc86e4
Signed by: Emi
GPG key ID: A12F2C2FFDC3D847

View file

@ -15,6 +15,8 @@ use tiny_http::StatusCode;
pub fn go(domains: &[&str]) { pub fn go(domains: &[&str]) {
let server = Server::http("0.0.0.0:3243").unwrap(); let server = Server::http("0.0.0.0:3243").unwrap();
println!("Running on 0.0.0.0:3243");
for req in server.incoming_requests() { for req in server.incoming_requests() {
let route = Route::parse_request(&req); let route = Route::parse_request(&req);
let resp = route.render(domains); let resp = route.render(domains);