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

Add support for IPv6 addresses #298

Merged
merged 5 commits into from
Jul 13, 2023

Conversation

elliotwutingfeng
Copy link
Contributor

@elliotwutingfeng elliotwutingfeng commented Jul 7, 2023

Closes #263

  • This could possibly break an unusual use case where square brackets are considered valid domain name labels, such as sub[.example.com -> sub[ + example + com. It's not compliant with RFC 3986 to begin with so it probably isn't an issue.

  • If the IPv6 literal contains a trailing IPv4 address, non-ASCII dots are allowed, similar to behaviour in the Chrome and Edge web browsers. Firefox however does not allow non-ASCII dots in IPv6 literals.

  • I don't see any performance regressions as of yet.

  • Pure IPv6 addresses without square brackets are deemed invalid because they are invalid in the context of URLs.

@john-kurkowski
Copy link
Owner

Amazing! I'll take a look soon.

@john-kurkowski
Copy link
Owner

✨ Beautiful. Well integrated with what's already there.

@john-kurkowski john-kurkowski merged commit 3a30cb5 into john-kurkowski:master Jul 13, 2023
1 check passed
@elliotwutingfeng elliotwutingfeng deleted the ipv6 branch July 13, 2023 00:58
bmwiedemann pushed a commit to bmwiedemann/openSUSE that referenced this pull request Oct 23, 2023
https://build.opensuse.org/request/show/1119465
by user mia + anag+factory
- Update to 5.0.1:
Bugfixes:
  * Indicate MD5 not used in a security context (FIPS compliance)
    #gh/john-kurkowski/tldextract#309
Misc.:
  * Increase typecheck aggression
- Changes in 5.0.0:
Breaking Changes:
  * Migrate `ExtractResult` from `namedtuple` to `dataclass`
    #gh/john-kurkowski/tldextract#306
Bugfixes:
  * Drop support for EOL Python 3.7
- Changes in 4.0.0:
Breaking Bugfixes:
  * Always include suffix if private suffix enabled and private
    suffix exists
    #gh/john-kurkowski/tldextract#300
- Changes in 3.5.0:
Features:
  * Support IPv6 addresses
    #gh/john-kurkowski/tldextract#298
Bugfixes:
  * Accept only 4 decimal octet IPv4 addresses
    #gh/john-kurkowski/tldextract#292
  * Support IPv4 addresses with unicode dots
  * Reject IPv4 addresses with trailing whitespace
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.

IPv6 addresses are not handled
2 participants