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

Fix IPv6 address being sent to gethostname still containing []'s #167

Open
aashah opened this issue Jan 27, 2020 · 0 comments
Open

Fix IPv6 address being sent to gethostname still containing []'s #167

aashah opened this issue Jan 27, 2020 · 0 comments
Assignees

Comments

@aashah
Copy link

aashah commented Jan 27, 2020

IPv6 addresses can have brackets around their host, this causes issues here:

client = EM.connect(@uri.host, @uri.port, self, opts)
where EM.connect() eventually goes down to a gethostname call.

Simple hack is to update that to something like: EM.connect(@uri.host.tr('[]', '') ....

I'm not sure what the right thing to do here is, would love help figuring out if this issue is in the right place too. Is this a problem ruby's uri, and stripping [] from some_uri.host?

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

No branches or pull requests

3 participants