mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 17:10:50 +00:00
Allow port to be 0 in configuration, in order to allow disabling of TCP.
This commit is contained in:
parent
29920dceb8
commit
df50d707f3
@ -66,7 +66,7 @@ void loadServerConfig(char *filename) {
|
|||||||
}
|
}
|
||||||
} else if (!strcasecmp(argv[0],"port") && argc == 2) {
|
} else if (!strcasecmp(argv[0],"port") && argc == 2) {
|
||||||
server.port = atoi(argv[1]);
|
server.port = atoi(argv[1]);
|
||||||
if (server.port < 1 || server.port > 65535) {
|
if (server.port < 0 || server.port > 65535) {
|
||||||
err = "Invalid port"; goto loaderr;
|
err = "Invalid port"; goto loaderr;
|
||||||
}
|
}
|
||||||
} else if (!strcasecmp(argv[0],"bind") && argc == 2) {
|
} else if (!strcasecmp(argv[0],"bind") && argc == 2) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user