diff options
author | antirez <antirez@gmail.com> | 2013-07-09 10:47:17 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2013-07-09 10:47:17 +0200 |
commit | f19e267e9a422e2c791489e5d46ec16e966f55d6 (patch) | |
tree | 0b02c41e3b22ecd0b59f73790052aa48a556bf71 /src/anet.c | |
parent | 90038906f44be7adef9ac656f24f2f32889e1975 (diff) | |
download | redis-f19e267e9a422e2c791489e5d46ec16e966f55d6.tar.gz |
IPv6: bind IPv4 and IPv6 interfaces by default.
Diffstat (limited to 'src/anet.c')
-rw-r--r-- | src/anet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/anet.c b/src/anet.c index 434d8311e..bf8c92549 100644 --- a/src/anet.c +++ b/src/anet.c @@ -392,7 +392,7 @@ static int _anetTcpServer(char *err, int port, char *bindaddr, int af) if ((s = socket(p->ai_family,p->ai_socktype,p->ai_protocol)) == -1) continue; - if (AF_INET6 == af && anetV6Only(err,s) == ANET_ERR) + if (af == AF_INET6 && anetV6Only(err,s) == ANET_ERR) goto error; /* could continue here? */ if (anetListen(err,s,p->ai_addr,p->ai_addrlen) == ANET_ERR) |