Skip to content

Improve parsing of IPv6 addresses#488

Open
MitchellCash wants to merge 3 commits intoPaycoinFoundation:masterfrom
MitchellCash:ipparse
Open

Improve parsing of IPv6 addresses#488
MitchellCash wants to merge 3 commits intoPaycoinFoundation:masterfrom
MitchellCash:ipparse

Conversation

@MitchellCash
Copy link
Contributor

Implement the following rules:

  • Interpret [X]:Y as host=X port=Y, if Y is an integer
  • Interpret X:Y as host=X port=Y, if Y is an integer and X contains no colon
  • Interpret X:Y as host=X:Y port=default otherwise

This is the final step before Tor support. Also with IPv6 becoming more and more common we should get these sort of fixes done sooner rather than later.

(1 hour)

sipa added 3 commits March 12, 2016 11:50
Implement the following rules:
* Interpret [X]:Y as host=X port=Y, if Y is an integer
* Interpret X:Y as host=X port=Y, if Y is an integer and X contains no colon
* Interpret X:Y as host=X:Y port=default otherwise
* Do not rely on "a.b.c" being interpreted as "a.0.b.c"
* Parse numeric addresses for address families for which no device is configured
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments