◐ Shell
clean mode source ↗

feat: add multicast_addresses to bind/multicast independently by bluetoothbot · Pull Request #1767 · python-zeroconf/python-zeroconf

bdraco

bdraco

bdraco

iOS and other sandboxed platforms allow joining the mDNS multicast
group on a physical interface but forbid binding port 5353 on it
because the system mDNS daemon owns the port. The existing
``interfaces`` parameter conflates the two: every entry both joins
the multicast group and gets a respond socket bound to that
interface's address.

Add an optional ``multicast_addresses`` parameter on ``Zeroconf`` /
``AsyncZeroconf`` / ``create_sockets`` for additional addresses that
are joined to the listen socket's multicast group without creating
a respond socket. The default behavior is unchanged.

Fixes python-zeroconf#1520
… validation and autodetect

@bluetoothbot