librespot-org / libmdns

mDNS Responder library for building discoverable LAN services in Rust
https://crates.io/crates/libmdns
MIT License
71 stars 34 forks source link

Added allowed IP list in A record #35

Closed mstrug closed 2 years ago

mstrug commented 2 years ago

Added option to pass list of allowed IP list which can be sent in mDNS A records. By default libmdns adds IP of all available interfaces which not always is a required behaviour.

willstott101 commented 2 years ago

Thanks for this - I'd have rather an implementation via a builder pattern such as #9 but this ought to be fine for a version. Better to let people be sure it solves their problem.