diff --git a/src/cluster.c b/src/cluster.c index b2b5ca43..195cfe5d 100644 --- a/src/cluster.c +++ b/src/cluster.c @@ -317,6 +317,7 @@ void clusterAcceptHandler(aeEventLoop *el, int fd, void *privdata, int mask) { redisLog(REDIS_VERBOSE,"Accepting cluster node: %s", server.neterr); return; } + /* IPV6: might want to wrap a v6 address in [] */ redisLog(REDIS_VERBOSE,"Accepted cluster node %s:%d", cip, cport); /* We need to create a temporary node in order to read the incoming * packet in a valid contest. This node will be released once we diff --git a/src/networking.c b/src/networking.c index e58db607..b220055f 100644 --- a/src/networking.c +++ b/src/networking.c @@ -1216,6 +1216,7 @@ void clientCommand(redisClient *c) { client = listNodeValue(ln); if (anetPeerToString(client->fd,ip,sizeof(ip),&port) == -1) continue; + /* IPV6: might want to wrap a v6 address in [] */ snprintf(addr,sizeof(addr),"%s:%d",ip,port); if (strcmp(addr,c->argv[2]->ptr) == 0) { addReply(c,shared.ok);