Support AF_UNIX sockets for mpd #1531
It would be great if mopidy supported AF_UNIX style sockets for mpd instead of listening on localhost. [This is especially useful for configurations where mopidy is running as a user, and may have a conflict on localhost:6600.]
Something like the following would probably work (but there's probably a better, more general method.)
The text was updated successfully, but these errors were encountered:
Yes, because a user can control sockets in directories they own; they have no control over what service gets spawned on a non-privileged port. It also means that only a user who can write to the socket can talk to mopidy, which is often useful.
(For me, it means that I don't have to worry if there's a system-wide mopidy running; my configuration will always "just work" because it uses MPD_HOST=~/var/mpd/socket.)
I think that checking the hostname parameter would be enough; I suggest not just limiting to
I'm very keen on this functionality, but am new to mopidy. It looks like nothing has happened from this so far so I'd be willing to give it a go although I'll need to get up to speed on development within this project.