-
Notifications
You must be signed in to change notification settings - Fork 647
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
librespot mdns reponder competes with avahi -> forces avahi to add '-2' to the hostname #1379
Comments
I think this is an issue with the If you have Avahi running already, you should be able to compile librespot with the #1347 proposes to add yet another Avahi-based zeroconf interface to librespot and makes switching between the different configurations more convenient (by adding a commandline flag, instead of just a compile-time feature, and by not requiring non-Rust dependencies). Your suggested fix sounds like a worthwhile improvement we could do; and we could probably also do a better job of documenting this behavior. |
One thing we could do on top of #1347 is to add an |
Relevant history: plietar/librespot#33, plietar/librespot#81. |
Look for similar bugs
done
Description
When librespot is running, and
or
avahi will find a hostname conflict when trying to claim the system host name <hostname>, and has to resort to register <hostname>-2
The result is that the original <hostname>.local can not be resolved by other hosts in the LAN.
Version
any, incl. 0.5.0
How to reproduce
Steps to reproduce the behavior
Log
Host (what you are running
librespot
on):Suggested fix (concept)
Starting the mdns responder should be done using spawn_ip_with_ip_list_and_hostname, and choose a hostname derived from the system hostname, like "librespot-on-<hostname>", or maybe same random value.
suggestion based on (avahi/avahi#117 (comment))
(edit: escape the > and < around hostname)
The text was updated successfully, but these errors were encountered: