-
Notifications
You must be signed in to change notification settings - Fork 25
Creates the NormalizeAddr Func to Format IPv6 Addresses #157
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
Conversation
…copy of that address conformant with RFC5952
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a first pass 👀
…n, some other typo and wording fixes in comments
…long as it does not contain [, ], or :
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work on this thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚢
NormalizeAddr takes an address as a string and returns a normalized copy. If the address is a URL, IP Address, or host:port address that includes an IPv6 address, the normalized copy will be conformant with RFC-5952 §4. If the address cannot be parsed, an error will be returned.
There are two valid formats:
host
in this format
[scheme://] [user@] host [:port] [/path] [?query] [#frag]
See: