From 8b30a7241d9a6410d20510b39279f869a97839a0 Mon Sep 17 00:00:00 2001 From: Emi Simpson Date: Tue, 8 Feb 2022 15:49:49 -0500 Subject: [PATCH] Correct some text which still believed the server to use the fixed port --- src/server.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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);