From 5de00f66bb25a0e5e6fd004ee918a50f76681d79 Mon Sep 17 00:00:00 2001 From: Johann150 Date: Mon, 8 Feb 2021 08:32:40 +0100 Subject: [PATCH] reenable multiple occurences of --addr Accidentally disabled this when merging reformatting. --- 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 d4d9419..a253430 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2,7 +2,7 @@ # It is not intended for manual editing. [[package]] name = "agate" -version = "2.4.0" +version = "2.4.1" dependencies = [ "env_logger", "getopts", diff --git a/Cargo.toml b/Cargo.toml index 2e0d69d..a956ced 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "agate" -version = "2.4.0" +version = "2.4.1" authors = ["Matt Brubeck ", "Johann150 "] description = "Very simple server for the Gemini hypertext protocol" keywords = ["server", "gemini", "hypertext", "internet", "protocol"] diff --git a/src/main.rs b/src/main.rs index e12459a..3a70fa7 100644 --- a/src/main.rs +++ b/src/main.rs @@ -97,7 +97,7 @@ fn args() -> Result { "PKCS8 private key file (default ./key.rsa)", "FILE", ); - opts.optopt( + opts.optmulti( "", "addr", "Address to listen on (multiple occurences possible, default 0.0.0.0:1965 and [::]:1965)",