Changing the fallback error to something meaningful. - 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 fc1097d34bbf1c47b7f33275a8657d6d920e3a6a
DIR parent 4d89b560595076c8994896195fbcd196460987dc
HTML Author: Christoph Lohmann <20h@r-36.net>
Date: Thu, 30 Aug 2018 21:32:06 +0200
Changing the fallback error to something meaningful.
Thanks to Evil_Bob I found this out.
Diffstat:
M main.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
DIR diff --git a/main.c b/main.c
@@ -506,7 +506,8 @@ main(int argc, char *argv[])
}
}
if (listfd < 0) {
- perror("You did not specify a TCP port.");
+ fprintf(stderr, "Unable to got a binding socket. "
+ "Look at bindip and the tcp port.\n");
return 1;
}