spring-cloud / spring-cloud-consul

Spring Cloud Consul
http://cloud.spring.io/spring-cloud-consul/
Apache License 2.0
813 stars 541 forks source link

Fix ipv6 formatting for consul discovery #807

Closed LichMscy closed 1 year ago

LichMscy commented 1 year ago

In some specific scenario[IPV6 only], when reverse lookup from nameServer, will get domain other than ipv6 address.

When wrap with square brackets, will result in java.net.URISyntaxException: Malformed IPv6 address at index 8: http://[dc53-xx-xxxx-xxxx.example.org]:9209/xxx

e.g.

image
pivotal-cla commented 1 year ago

@LichMscy Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

pivotal-cla commented 1 year ago

@LichMscy Thank you for signing the Contributor License Agreement!