influxdb-client-java icon indicating copy to clipboard operation
influxdb-client-java copied to clipboard

IPv6 hosts are not supported

Open tedpearson opened this issue 2 years ago • 1 comments
trafficstars

https://github.com/influxdata/influxdb-client-java/blob/886eb8840b4d72fdb9973801ba4cd6e1d6fa1306/client/src/main/java/com/influxdb/client/InfluxDBClientOptions.java#L697

The InfluxDBClientOptions.ParsedUrl constructor strips the square brackets off IPv6 addresses, rendering urls containing them invalid. E.g. http://[2001:db8:3333:4444:5555:6666:7777:8888]:8086/ becomes http://2001:db8:3333:4444:5555:6666:7777:8888:8086/.

See how okhttp3 HttpUrl.Builder.toString() handles IPv6 addresses.

tedpearson avatar Sep 01 '23 22:09 tedpearson