Skip to content

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

Open
@aashah

Description

@aashah

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?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions