Thanks to visit codestin.com
Credit goes to github.com

Skip to content

IPv6 hosts are not supported #623

@tedpearson

Description

@tedpearson

String urlWithoutParams = url.scheme() + "://" + url.host() + ":" + url.port() + url.encodedPath();

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions