mirror of
https://github.com/emikulic/darkhttpd.git
synced 2023-08-10 21:13:08 +03:00
document port 0 == random available
This commit is contained in:
parent
bcadc424a4
commit
aa9859413e
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user