mirror of
https://github.com/fluencelabs/redis
synced 2025-03-30 22:31:03 +00:00
Don't try to bind the source address for MIGRATE
Related to issues #2609 and #2612.
This commit is contained in:
parent
ffd6637e90
commit
a401a84eb2
@ -4486,8 +4486,8 @@ migrateCachedSocket* migrateGetSocket(redisClient *c, robj *host, robj *port, lo
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Create the socket */
|
/* Create the socket */
|
||||||
fd = anetTcpNonBlockBindConnect(server.neterr,c->argv[1]->ptr,
|
fd = anetTcpNonBlockConnect(server.neterr,c->argv[1]->ptr,
|
||||||
atoi(c->argv[2]->ptr),REDIS_BIND_ADDR);
|
atoi(c->argv[2]->ptr));
|
||||||
if (fd == -1) {
|
if (fd == -1) {
|
||||||
sdsfree(name);
|
sdsfree(name);
|
||||||
addReplyErrorFormat(c,"Can't connect to target node: %s",
|
addReplyErrorFormat(c,"Can't connect to target node: %s",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user