probonopd / announce

Announce services on the network with Zeroconf/Bonjour with minimal overhead.
15 stars 5 forks source link

Annouces IP addresses that don't match interfaces advertised on #11

Open karlp opened 8 years ago

karlp commented 8 years ago

If you have two interfaces, say, 192.168.49.* and 192.168.255.*, announce is picking the first non-loopback address and advertising that as the ip. It should be using the appropriate IP address for the interface it's announcing on, not just any old ip.

probonopd commented 8 years ago

Thanks for catching this; do you have an idea on how to implement this?

karlp commented 8 years ago

no, just something quick I came across while evaluating alternatives to avahi-daemon. Currently working on the openwrt mdnsd tests, which, as noted are undocumented, but I think might actually work.

probonopd commented 8 years ago

A fuller implementation is avahi, I am sure you have considered that. This here is the bare minimum if you want to squeeze every KB.

karlp commented 8 years ago

No, I've been using avahi-daemon, but I want to save space. Unfortunately, I can't really say this is the "bare minimum" if it's advertising the wrong IPs. I suspect you need to have a mdns instance per interface, not just a single instance? Anyway.