Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connecting via IPv6 #1088

Open
olivere opened this issue Apr 29, 2019 · 2 comments
Open

Connecting via IPv6 #1088

olivere opened this issue Apr 29, 2019 · 2 comments
Assignees
Labels

Comments

@olivere
Copy link
Owner

olivere commented Apr 29, 2019

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 olivere self-assigned this Apr 29, 2019
@phillbaker
Copy link
Contributor

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

@olivere
Copy link
Owner Author

olivere commented Jul 28, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants