-
-
Notifications
You must be signed in to change notification settings - Fork 211
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
IPv6 addresses are not handled #263
Comments
Agreed that those IPv6 outputs are garbage, like returning |
Re: IPv4, your quoted output is intended. Think of
|
Ah, I was just naively assuming that "domain" < "fully-qualified domain". My bad for taking a random code snippet from SE and not really reading the docstring 😅. I guess I wouldn't change how |
What I needed in my use case was a way to get just the hostname (without user credentials or port number) that would work for all URLs, and Reading the code, |
I hear you on the README examples. 👍
Yup, |
For URLs using IPv4 addresses, the host address gets extracted correctly using
.domain
but.fqdn
gives the empty string:For URLs using IPv6 addresses, neither method extracts the host address correctly:
This was tested using
tldextract
version 3.2.1 on Python 3.9.12The text was updated successfully, but these errors were encountered: