From 0f13ad70e2f0be72b19e44fed5b3bfef48d56879 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sun, 12 Nov 2017 15:35:19 +0100 Subject: main(): Use user-supplied port Remove the hard-coded port and use the one passed in via command line option (or the default one). --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/main.rs b/src/main.rs index e9b7cc7..98bd5e5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -87,7 +87,7 @@ fn main() { None => DEFAULT_PORT, }; - rouille::start_server("localhost:8000", move |request| { + rouille::start_server(format!("localhost:{}", port), move |request| { router!(request, (POST) (/github/pull_request_event) => { let mut body = String::new(); -- cgit v1.2.3