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
1 changed files with 2 additions and 0 deletions

View File

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