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

Improve parsing of IPv6 addresses #488

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

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