From 515ebf74f1ee27448c62d269a93289e4489ac368 Mon Sep 17 00:00:00 2001 From: Hannes de Jager Date: Sun, 29 Sep 2019 08:05:20 +0200 Subject: [PATCH] Use bind-address-http for http server and bumped version number to 0.3.0 --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/main.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 506461e..cb5833b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1456,7 +1456,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "unftp" -version = "0.2.0" +version = "0.3.0" dependencies = [ "chrono 0.4.9 (registry+https://github.com/rust-lang/crates.io-index)", "clap 2.33.0 (registry+https://github.com/rust-lang/crates.io-index)", diff --git a/Cargo.toml b/Cargo.toml index 6f9acc1..854d538 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "unftp" -version = "0.2.0" +version = "0.3.0" authors = [ "Agoston Horvath ", "Dávid Kosztka ", diff --git a/src/main.rs b/src/main.rs index 60edca6..b516363 100644 --- a/src/main.rs +++ b/src/main.rs @@ -313,7 +313,7 @@ fn main() { let mut runtime = TokioRuntime::new().unwrap(); // HTTP server for exporting Prometheus metrics - if let Some(addr) = arg_matches.value_of("metrics-bind-address") { + if let Some(addr) = arg_matches.value_of("bind-address-http") { let http_addr = addr .parse() .expect(format!("Unable to parse metrics address {}", addr).as_str());