Skip to content

Commit

Permalink
Don't try to bind the source address for MIGRATE
Browse files Browse the repository at this point in the history
Related to issues #2609 and #2612.
  • Loading branch information
antirez committed Jun 11, 2015
1 parent f58d67b commit d815289
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cluster.c
Expand Up @@ -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",
Expand Down

0 comments on commit d815289

Please sign in to comment.