Correct some text which still believed the server to use the fixed port

This commit is contained in:
Emi Simpson 2022-02-08 15:49:49 -05:00
parent 80e2c63c78
commit 8b30a7241d
Signed by: Emi
GPG key ID: A12F2C2FFDC3D847

View file

@ -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);