include hostname in zeroconf_name (fixes #387)

expand %h to the system hostname and default to a zeroconf string that
contains %h
This commit is contained in:
Florian Schlichting
2018-10-31 17:54:45 +01:00
parent 2148d4bb31
commit d1f85240a2
4 changed files with 15 additions and 5 deletions

View File

@@ -99,7 +99,8 @@ information will be published with Zeroconf. The default is yes.
.B zeroconf_name <name>
If Zeroconf is enabled, this is the service name to publish. This name should
be unique to your local network, but name collisions will be properly dealt
with. The default is "Music Player".
with. The default is "Music Player @ %h", where %h will be replaced with the
hostname of the machine running MPD.
.TP
.B audio_output
See \fBDESCRIPTION\fP and the various \fBAUDIO OUTPUT PARAMETERS\fP sections