In case the listen port is set, set show port too, if this is unset. - geomyidae - A small C-based gopherd.
HTML git clone git://bitreich.org/geomyidae/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/geomyidae/
DIR Log
DIR Files
DIR Refs
DIR Tags
DIR README
DIR LICENSE
---
DIR commit 7ca184a99e81c3549a8a3d82ec7a201686cf3040
DIR parent fc1097d34bbf1c47b7f33275a8657d6d920e3a6a
HTML 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:
M main.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
DIR 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());