-
Notifications
You must be signed in to change notification settings - Fork 230
Attempting to bind specific interface using interfaces option doesn't work #193
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
Comments
Thanks, @kdart! @jstasiak, I've tested this patch on v0.23.0 (on Windows) and it works for me too (although #180 indicates there could be more to a full solution). I started to turn it into a PR, but I'm not quite sure what to do about the interaction with the new IPv6 support on master. |
@jstasiak Do you have any thoughts on whether this approach is good, and could be integrated with master? It would be very useful to either be able to restrict browsing to one port or to ensure all interfaces' advertisements are discovered and reported. At the moment it seems a bit of a lottery. Thanks. |
Honestly, I think this is a bit of a quick fix, but could be better. I'll see if I can look at this again. |
Hey @kdart and @garethsb-sony, thanks for the path and the information, I totally forgot about this – I'll try to have a closer look at it soon. |
@garethsb-sony @kdart as you mentioned it was a bit more involved to integrate this with IPv6 support, but I managed to merge your suggestion with @estyrke's patch from #188 and I ended up with #270 with all tests passing. Do you mind testing the version of the code from that pull request (branch |
Thank you, @jstasiak. I will make some time to evaluate (I need to refresh my memory on the set up I had with DNS-SD services being advertised/discovered on multiple interfaces). |
The documentation implies that
Zeroconf(interfaces=[<localIP>])
should restrict listening to one port. But it did not work because the actual socket is bound to all ports.The following patch fixes it.
The text was updated successfully, but these errors were encountered: