Subject: | Failed to bind to '[::1]:6600': Address already in use |
Hi,
I'm forwarding Debian bug http://bugs.debian.org/cgi-bin/bugreport.cgi?
bug=667062
Apparently, there are differences even among Debian systems about the
addresses that "localhost" refers to, with some systems interpreting the
name as IPv4-only, whereas other systems take it to refer to both the
IPv4 (127.0.0.1) as well as the IPv6 (::1) localhost address, and a
sentiment that the latter is arguably more correct. Unfortunately, on
the latter systems, t/00-compile.t fails with the error message "could
not start fake mpd: Failed to bind to '[::1]:6600': Address already in
use", as ::1 is already taken when binding to "localhost", and cannot be
bound to twice.
The following patch fixes this problem by disambiguating the address to
bind to:
--- a/share/mpd.conf.template
+++ b/share/mpd.conf.template
@@ -6,7 +6,7 @@
db_file "TMP/music.db"
state_file "TMP/state"
pid_file "TMP/pid"
-bind_to_address "localhost"
+bind_to_address "127.0.0.1"
password "fulladmin@read,add,control,admin"
password "foobar@read"
default_permissions "read,add,control,admin"
Florian