tShow new interface behaviour in manpage and help message. - geomyidae - A small C-based gopherd. (gopher://bitreich.org/1/scm/geomyidae)
git clone git://r-36.net/geomyidae
Log
Files
Refs
README
LICENSE
---
commit e32a3c324c94aa302f866d422ac6f1340593c01c
parent 4fe10e742add6f47102b7905fc9c7a606a75df2c
Author: Christoph Lohmann <20h@r-36.net>
Date:   Thu, 15 Nov 2018 21:27:21 +0100

Show new interface behaviour in manpage and help message.

Diffstat:
  geomyidae.8                         |       7 ++++---
  main.c                              |       2 +-

2 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/geomyidae.8 b/geomyidae.8
t@@ -25,7 +25,7 @@
 .Op Fl u Ar user
 .Op Fl g Ar group
 .Op Fl h Ar host
-.Op Fl i Ar IP
+.Op Fl i Ar interface ...
 .Ek
 .
 .Sh DESCRIPTION
t@@ -153,8 +153,9 @@ processing.
 .It Fl h Ar host
 Host to use in directory listings (default: localhost)
 .
-.It Fl i Ar IP
-IP to which geomyidae binds to (default: 0.0.0.0)
+.It Fl i Ar interface
+Defines the interface to which geomyidae binds to (default: 0.0.0.0).
+Multiple interfaces can be given.
 .El
 .
 .Sh FORMATTING
diff --git a/main.c b/main.c
t@@ -386,7 +386,7 @@ usage(void)
 {
         dprintf(2, "usage: %s [-46cden] [-l logfile] "
                    "[-v loglvl] [-b base] [-p port] [-o sport] "
-                   "[-u user] [-g group] [-h host] [-i IP]\n",
+                   "[-u user] [-g group] [-h host] [-i interface ...]\n",
                    argv0);
         exit(1);
 }