-
Notifications
You must be signed in to change notification settings - Fork 241
Adjust to allow both IPv4 and IPv6 addresses #976
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
base: master
Are you sure you want to change the base?
Conversation
Alternatively, could validate with valid_ipv4, valid_ipv6
|
Not seeing any files changed in this commit. |
|
Ugh, github UI :/ two secs |
|
Has this been tested with any IPv6 Sonos systems? I'm wondering if the IPv4 assumption is widespread, beyond just the check. The discovery code, for example. |
|
Apparently this is happening during HA auto discovery. We need a look at the packets coming in as it's possible it's going to be auto discovered with a v4 and a v6 address. Another solution is to filter out v6 discovery packets. @CloCkWeRX we should create a test case in HA that generates an auto discovery ipv6 address that would allow some level of trace through to happen without the device in hand. Likewise we'd need a similar test case here. |
No, I don't physically own one.
So yes, I suspect that's likely. Unfortunately, I'm working off the backtrace in home-assistant/core#139617 rather than having a physical device so its harder to build up a reasonable set of realistic IPv6 test cases. Did what I could by following the existing patterns. |
home-assistant/core#139617
Not tested with a real device.
I have a busy work week; so feel free to take over this PR/branch if there's other areas that should be addressed and you don't feel like waiting ~6-7 days.