diff options
author | Teddy Wing | 2017-11-12 15:35:19 +0100 |
---|---|---|
committer | Teddy Wing | 2017-11-12 15:35:19 +0100 |
commit | 0f13ad70e2f0be72b19e44fed5b3bfef48d56879 (patch) | |
tree | ac54bf0f0a8d52ef53bdb575ee784d6b71504661 /src/main.rs | |
parent | f5740b97cecd2a2984e274fb5fbd141675e3be24 (diff) | |
download | kipper-0f13ad70e2f0be72b19e44fed5b3bfef48d56879.tar.bz2 |
main(): Use user-supplied port
Remove the hard-coded port and use the one passed in via command line
option (or the default one).
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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(); |