Add workaround for IPv6 parsing #332

Closed
mp911de opened this Issue Aug 11, 2016 · 0 comments

Projects

None yet

1 participant

@mp911de
Owner
mp911de commented Aug 11, 2016

Redis reports IPv6 addresses as bare IP address even when provided with a port:

ASK redirection

-ASK 1234 dead:beef:dead:beef:1:2::3:6379

CLUSTER NODES output

c37ab8396be428403d4e55c0d317348be27ed973 affe:affe:123:34::1:7381 master - 111 1401258245007 222 connected 7000 12000 12002-16383

The lack of brackets causes some ambiguity but in the mentioned cases we know the expected format so we can work around the issue by introducing compatibility parsing until antirez/redis#3076 gets resolved.

@mp911de mp911de added this to the Lettuce 4.2.2 milestone Aug 11, 2016
@mp911de mp911de added a commit that referenced this issue Aug 11, 2016
@mp911de Add workaround for IPv6 parsing #332
Allow parsing of malformed IPv6 host and port expression without brackets around the IP address part.
1fb1fcf
@mp911de mp911de added a commit that referenced this issue Aug 11, 2016
@mp911de Add workaround for IPv6 parsing #332
Allow parsing of malformed IPv6 host and port expression without brackets around the IP address part.
8fb5ad4
@mp911de mp911de closed this Aug 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment