reenable multiple occurences of --addr

Accidentally disabled this when merging reformatting.
This commit is contained in:
Johann150 2021-02-08 08:32:40 +01:00
parent 2782d744bf
commit 5de00f66bb
No known key found for this signature in database
GPG key ID: 9EE6577A2A06F8F1
3 changed files with 3 additions and 3 deletions

2
Cargo.lock generated
View file

@ -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",

View file

@ -1,6 +1,6 @@
[package]
name = "agate"
version = "2.4.0"
version = "2.4.1"
authors = ["Matt Brubeck <mbrubeck@limpet.net>", "Johann150 <johann+agate@qwertqwefsday.eu>"]
description = "Very simple server for the Gemini hypertext protocol"
keywords = ["server", "gemini", "hypertext", "internet", "protocol"]

View file

@ -97,7 +97,7 @@ fn args() -> Result<Args> {
"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)",