Skip to content

Conversation

@YutongGu
Copy link
Contributor

Description

Adds support for using an existing avahi-daemon for mDNS service registration instead of the built-in mDNS responder. This is useful for:

  • Embedded systems where a single mDNS daemon is preferred
  • Avoiding port conflicts with other mDNS services
  • Integration with system service management

Configuration:

zeroconf_backend: avahi  # Options: "builtin" (default), "avahi"

Or via command line:

go-librespot -c zeroconf_backend=avahi

Compatibility:

  • Avahi 0.6.x and later (uses stable D-Bus API)
  • Tested with Avahi 0.7 and 0.8

…in backend

This update introduces a new configuration option for selecting the mDNS backend in the Zeroconf service. Users can now choose between the built-in mDNS responder and the avahi-daemon for service registration. The configuration schema has been updated accordingly, and the necessary backend implementations have been added.
@YutongGu
Copy link
Contributor Author

Oops looks like this duplicates #224. Happy to close this as duplicate if we prefer those changes over this one.

@devgianlu
Copy link
Owner

This looks better than my attempt because it doesn't add a runtime dependency on Avahi. Looking forward to merge this.

@devgianlu
Copy link
Owner

LGTM, can you fix the formatting for the CI to succeed?

@devgianlu devgianlu merged commit c70f355 into devgianlu:master Jan 1, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants