mirror of
https://github.com/fluencelabs/redis
synced 2025-03-30 22:31:03 +00:00
Configuring port to 0 disables IP socket as specified.
This was no longer the case with 2.8 becuase of a bug introduced with the IPv6 support. Now it is fixed. This fixes issue #1287 and #1477.
This commit is contained in:
parent
94e8c9e77e
commit
7e9433cee1
@ -1593,7 +1593,8 @@ void initServer() {
|
|||||||
server.db = zmalloc(sizeof(redisDb)*server.dbnum);
|
server.db = zmalloc(sizeof(redisDb)*server.dbnum);
|
||||||
|
|
||||||
/* Open the TCP listening socket for the user commands. */
|
/* Open the TCP listening socket for the user commands. */
|
||||||
if (listenToPort(server.port,server.ipfd,&server.ipfd_count) == REDIS_ERR)
|
if (server.port != 0 &&
|
||||||
|
listenToPort(server.port,server.ipfd,&server.ipfd_count) == REDIS_ERR)
|
||||||
exit(1);
|
exit(1);
|
||||||
|
|
||||||
/* Open the listening Unix domain socket. */
|
/* Open the listening Unix domain socket. */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user