From 71af9711bfe72c0d979c096a079ddd49f5c066af Mon Sep 17 00:00:00 2001 From: dormando Date: Fri, 2 Mar 2018 10:56:36 -0800 Subject: [PATCH] update --help for UDP default --- doc/memcached.1 | 2 +- memcached.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/memcached.1 b/doc/memcached.1 index caa53b7..f16ba2c 100644 --- a/doc/memcached.1 +++ b/doc/memcached.1 @@ -65,7 +65,7 @@ suggestions. Listen on TCP port , the default is port 11211. .TP .B \-U, --udp-port= -Listen on UDP port , the default is port 11211, 0 is off. +Listen on UDP port , the default is port 0, which is off. .TP .B \-M, --disable-evictions Disable automatic removal of items from the cache when out of memory. diff --git a/memcached.c b/memcached.c index 7178666..4c53f23 100644 --- a/memcached.c +++ b/memcached.c @@ -6156,7 +6156,7 @@ static void clock_handler(const int fd, const short which, void *arg) { static void usage(void) { printf(PACKAGE " " VERSION "\n"); printf("-p, --port= TCP port to listen on (default: 11211)\n" - "-U, --udp-port= UDP port to listen on (default: 11211, 0 is off)\n" + "-U, --udp-port= UDP port to listen on (default: 0, off)\n" "-s, --unix-socket= UNIX socket to listen on (disables network support)\n" "-A, --enable-shutdown enable ascii \"shutdown\" command\n" "-a, --unix-mask= access mask for UNIX socket, in octal (default: 0700)\n"