mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 09:00:51 +00:00
Update REDIS_CLUSTER_IPLEN to INET6_ADDRSTRLEN.
Change REDIS_CLUSTER_IPLEN to INET6_ADDRSTRLEN so that the clusterNode ip character buffer is big enough to hold an IPv6 address.
This commit is contained in:
parent
23f4d905ce
commit
6181455ac6
@ -564,7 +564,7 @@ typedef struct redisOpArray {
|
|||||||
#define REDIS_CLUSTER_FAIL 1 /* The cluster can't work */
|
#define REDIS_CLUSTER_FAIL 1 /* The cluster can't work */
|
||||||
#define REDIS_CLUSTER_NAMELEN 40 /* sha1 hex length */
|
#define REDIS_CLUSTER_NAMELEN 40 /* sha1 hex length */
|
||||||
#define REDIS_CLUSTER_PORT_INCR 10000 /* Cluster port = baseport + PORT_INCR */
|
#define REDIS_CLUSTER_PORT_INCR 10000 /* Cluster port = baseport + PORT_INCR */
|
||||||
#define REDIS_CLUSTER_IPLEN INET_ADDRSTRLEN /* IPv4 address string length */
|
#define REDIS_CLUSTER_IPLEN INET6_ADDRSTRLEN /* IPv6 address string length */
|
||||||
|
|
||||||
/* The following defines are amunt of time, sometimes expressed as
|
/* The following defines are amunt of time, sometimes expressed as
|
||||||
* multiplicators of the node timeout value (when ending with MULT). */
|
* multiplicators of the node timeout value (when ending with MULT). */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user