By default, the "config" command is restricted when using the TCP connection:
# telnet localhost 6600
Connected to localhost
OK MPD 0.24.0
config
ACK [4@0] {config} Command only permitted to local clients
Add support for local socket so that the config command will work for
locally-installed clients (ex: mympd).
Signed-off-by: Hugo Villeneuve <hugo@hugovil.com>
iniconf_set ${D}/${sysconfdir}/mpd.conf zeroconf_enabled "yes"
iniconf_set ${D}/${sysconfdir}/mpd.conf zeroconf_name "Serveur Musique MPD"
+ # Add local socket interface
+ echo "bind_to_address \"/var/lib/mpd/socket\"" >> ${D}/${sysconfdir}/mpd.conf
+
echo "audio_output {" >> ${D}/${sysconfdir}/mpd.conf
echo " type \"alsa\"" >> ${D}/${sysconfdir}/mpd.conf
echo " name \"${ALSA_DEVICE_NAME}\"" >> ${D}/${sysconfdir}/mpd.conf