diff --git a/src/server.rs b/src/server.rs index 98fc577..ae588a6 100644 --- a/src/server.rs +++ b/src/server.rs @@ -7,14 +7,14 @@ use tiny_http::Response; use tiny_http::Server; use tiny_http::StatusCode; -/// Start the server on port 3243 +/// Start the server on a given port /// -/// Runs the server in a single thread, bound to port 3243. Requests are handled -/// first-come, first-serve +/// Runs the server in a single thread, bound to 0.0.0.0 on the provided port. Requests are +/// handled first-come, first-serve pub fn go(domains: &[&str], port: u16) { let server = Server::http(("0.0.0.0", port)).unwrap(); - println!("Running on 0.0.0.0:3243"); + println!("Running on 0.0.0.0:{port}"); for req in server.incoming_requests() { let route = Route::parse_request(&req);