elastic
elastic copied to clipboard
Connecting via IPv6
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).
Ended up here via google search - as the link indicates, to connect over ipv6, are the brackets required?
@phillbaker It seems so, yes. Can you test it?