elastic icon indicating copy to clipboard operation
elastic copied to clipboard

Connecting via IPv6

Open olivere opened this issue 6 years ago • 2 comments

There seems to be confusion about how to connect to Elasticsearch with an IPv6 address.

I cannot test it right now, but it seems you have to follow the rules specified in the standard library. Here are some unit tests:

https://github.com/golang/go/blob/master/src/net/url/url_test.go#L361-L380

I'll keep this as a reference to my future self (and interested readers, like Kathy from China who sent me an email but I cannot respond due to reasons beyond my control).

olivere avatar Apr 29 '19 15:04 olivere

Ended up here via google search - as the link indicates, to connect over ipv6, are the brackets required?

phillbaker avatar Jul 26 '19 21:07 phillbaker

@phillbaker It seems so, yes. Can you test it?

olivere avatar Jul 28 '19 16:07 olivere