From a401a84eb2fb0b22e003cdd2c5231995f57bab8b Mon Sep 17 00:00:00 2001 From: antirez Date: Thu, 11 Jun 2015 12:29:37 +0200 Subject: [PATCH] Don't try to bind the source address for MIGRATE Related to issues #2609 and #2612. --- src/cluster.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cluster.c b/src/cluster.c index 916a4be6a..fb45bd063 100644 --- a/src/cluster.c +++ b/src/cluster.c @@ -4486,8 +4486,8 @@ migrateCachedSocket* migrateGetSocket(redisClient *c, robj *host, robj *port, lo } /* Create the socket */ - fd = anetTcpNonBlockBindConnect(server.neterr,c->argv[1]->ptr, - atoi(c->argv[2]->ptr),REDIS_BIND_ADDR); + fd = anetTcpNonBlockConnect(server.neterr,c->argv[1]->ptr, + atoi(c->argv[2]->ptr)); if (fd == -1) { sdsfree(name); addReplyErrorFormat(c,"Can't connect to target node: %s", -- GitLab