-
-
Notifications
You must be signed in to change notification settings - Fork 33.8k
List more private and link-local 8000 IP networks #74064
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
Hey there @bdraco, mind taking a look at this pull request as it has been labeled with an integration ( |
Hey there @Kane610, mind taking a look at this pull request as it has been labeled with an integration ( |
Hey there @oblogic7, @bdraco, @flacjacket, mind taking a look at this pull request as it has been labeled with an integration ( |
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.
LGTM if the CI passes
@bdraco could you restart the CI please? I forgot to remove an unused import |
Done |
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.
@pyos Looks like there are still a few places that need adjustments
Should the methods be deprecated instead of removed right away? |
That's a good point, we should probably leave them in place and have them throw warnings when used |
4ce1577
to
37953bd
Compare
Never mind that part, I assumed ipaddress is bug-free, but it is not; it does not consider IPv4-mapped IPv6 addresses at all. (Also "private" in ipaddress terminology means "reserved" while in homeassistant.util.network it's more like "unique local".) |
The IPv6 link-local network is especially important as without it local accounts don't work on IPv6-capable networks with no IPv6 DHCP server.
Proposed change
The list of private networks was missing IPv4 ones mapped to IPv6, and no IPv6 addresses were recognized as link-local. This made local-only accounts unusable on IPv6-capable networks with no IPv6 DHCP server.
Type of change
Checklist
black --fast homeassistant tests
)The integration reached or maintains the following Integration Quality Scale:
To help with the load of incoming pull requests: