Add a message when the server is ready
This commit is contained in:
parent
8ba6d720f8
commit
7b96cc86e4
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue