mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 09:00:51 +00:00
Merge pull request #3077 from Palethorn/ipv6-redirect-parse
Fix for #3076 Reverse redirect address parse
This commit is contained in:
commit
a4df156872
@ -738,7 +738,7 @@ static int cliReadReply(int output_raw_strings) {
|
|||||||
p = strchr(s+1,' '); /* MOVED[S]3999[P]127.0.0.1:6381 */
|
p = strchr(s+1,' '); /* MOVED[S]3999[P]127.0.0.1:6381 */
|
||||||
*p = '\0';
|
*p = '\0';
|
||||||
slot = atoi(s+1);
|
slot = atoi(s+1);
|
||||||
s = strchr(p+1,':'); /* MOVED 3999[P]127.0.0.1[S]6381 */
|
s = strrchr(p+1,':'); /* MOVED 3999[P]127.0.0.1[S]6381 */
|
||||||
*s = '\0';
|
*s = '\0';
|
||||||
sdsfree(config.hostip);
|
sdsfree(config.hostip);
|
||||||
config.hostip = sdsnew(p+1);
|
config.hostip = sdsnew(p+1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user