From aa9859413e3bd9c9f95389929eb5aeae80c7cd55 Mon Sep 17 00:00:00 2001 From: Lukas Stabe Date: Wed, 29 Jan 2014 17:53:30 +0100 Subject: [PATCH] document port 0 == random available --- darkhttpd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/darkhttpd.c b/darkhttpd.c index 215fc67..e16a75c 100644 --- a/darkhttpd.c +++ b/darkhttpd.c @@ -863,7 +863,8 @@ static void init_sockin(void) { static void usage(const char *argv0) { printf("usage:\t%s /path/to/wwwroot [flags]\n\n", argv0); printf("flags:\t--port number (default: %u, or 80 if running as root)\n" - "\t\tSpecifies which port to listen on for connections.\n\n", bindport); + "\t\tSpecifies which port to listen on for connections.\n" + "\t\tPass 0 to let the system choose any free port for you.\n\n", bindport); printf("\t--addr ip (default: all)\n" "\t\tIf multiple interfaces are present, specifies\n" "\t\twhich one to bind the listening port to.\n\n");