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 7ca184a99e81c3549a8a3d82ec7a201686cf3040
parent fc1097d34bbf1c47b7f33275a8657d6d920e3a6a
Author: Christoph Lohmann <20h@r-36.net>
Date:   Thu, 30 Aug 2018 21:35:01 +0200

In case the listen port is set, set show port too, if this is unset.

Thanks to Evil_Bob I found this. And I approve this.

Diffstat:
main.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/main.c b/main.c @@ -376,7 +376,7 @@ main(int argc, char *argv[]) gr = NULL; bindip = NULL; ohost = NULL; - sport = port; + sport = NULL; v4 = 1; v6 = 1; usechroot = 0; @@ -397,6 +397,8 @@ main(int argc, char *argv[]) break; case 'p': port = EARGF(usage()); + if (sport == NULL) + sport = port; break; case 'l': logfile = EARGF(usage());