IPv6 IP addresses cannot be used with RabbitMQ#37619
IPv6 IP addresses cannot be used with RabbitMQ#37619jonasfugedi wants to merge 5 commits intospring-projects:mainfrom
Conversation
…nto bugfix-ipv6-address-in-rabbit
…nto bugfix-ipv6-address-in-rabbit
|
@jonasfugedi Please sign the Contributor License Agreement! Click here to manually synchronize the status of this Pull Request. See the FAQ for frequently asked questions. |
|
@jonasfugedi Thank you for signing the Contributor License Agreement! |
|
@jonasfugedi Thanks very much for your first contribution to Spring Boot. I've merged it along with a polishing commit for style and a small bit of additional testing. |
Is it possible for an IPv6 address to be specified without a port (i.e. use the default port)? Wouldn't this code fail in that scenario, since it'd split on a colon that's part of the IP address, and not related to the port? |
Not if I read the code correct, the source of the addresses is Which ensures a port is always appended to the host. Previous behavior was retained, i.e. I kept the same assumptions as the code did before except I needed it to work when using ipv6 addresses. |
Failed to parse ipv6 addresses due to assumption of ipv4 addresses.
I think the regression was introduced in #34657