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

Support for IPv6 #818

Merged
merged 1 commit into from
Feb 21, 2018
Merged

Support for IPv6 #818

merged 1 commit into from
Feb 21, 2018

Conversation

hxinhan
Copy link
Contributor

@hxinhan hxinhan commented Nov 30, 2017

We should support kafka-node for IPv6 as well. I've updated the parseHost function to parse both IPv4 and IPv6 addresses. According to RFC 3986 (https://tools.ietf.org/html/rfc3986), an IPv6 address is supposed to be wrapped by brackets and separated with port number by a colon.

eg. [2001:bd4:32:4d21:225d:1f22:113:2535]:9092

This an example of presented IPv6 address a client is supposed to receive as the kafkaHost option.

Copy link
Collaborator

@hyperlink hyperlink left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution!

@hyperlink hyperlink merged commit d94c322 into SOHU-Co:master Feb 21, 2018
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

Successfully merging this pull request may close these issues.

3 participants