X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/09d2abdca2a4300fabe1c432cab43c4f3869fb1d..4a14dbbac2eb6148c50212222beb2639ecbc8760:/src/config.c diff --git a/src/config.c b/src/config.c index 632a7398..e0bf1574 100644 --- a/src/config.c +++ b/src/config.c @@ -66,7 +66,7 @@ void loadServerConfig(char *filename) { } } else if (!strcasecmp(argv[0],"port") && argc == 2) { server.port = atoi(argv[1]); - if (server.port < 1 || server.port > 65535) { + if (server.port < 0 || server.port > 65535) { err = "Invalid port"; goto loaderr; } } else if (!strcasecmp(argv[0],"bind") && argc == 2) {