aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2017-11-12 15:35:19 +0100
committerTeddy Wing2017-11-12 15:35:19 +0100
commit0f13ad70e2f0be72b19e44fed5b3bfef48d56879 (patch)
treeac54bf0f0a8d52ef53bdb575ee784d6b71504661
parentf5740b97cecd2a2984e274fb5fbd141675e3be24 (diff)
downloadkipper-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).
-rw-r--r--src/main.rs2
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();