From febd7ebc15d6ac508c413753878e112eb96a56da Mon Sep 17 00:00:00 2001 From: Stein Magnus Jodal Date: Sun, 20 Jun 2010 23:02:07 +0200 Subject: [PATCH] Bind to 127.0.0.1 as default, since 'localhost' is IPv6-only on IPv6-enabled hosts --- mopidy/settings.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/mopidy/settings.py b/mopidy/settings.py index 17bcf0eb..dc2eda57 100644 --- a/mopidy/settings.py +++ b/mopidy/settings.py @@ -112,11 +112,15 @@ SERVER = u'mopidy.mpd.server.MpdServer' #: Which address Mopidy should bind to. Examples: #: -#: ``localhost`` -#: Listens only on the loopback interface. Default. +#: ``127.0.0.1`` +#: Listens only on the IPv4 loopback interface. Default. +#: ``::1`` +#: Listens only on the IPv6 loopback interface. #: ``0.0.0.0`` -#: Listens on all interfaces. -SERVER_HOSTNAME = u'localhost' +#: Listens on all IPv4 interfaces. +#: ``::`` +#: Listens on all interfaces, both IPv4 and IPv6. +SERVER_HOSTNAME = u'127.0.0.1' #: Which TCP port Mopidy should listen to. Default: 6600 SERVER_PORT = 6600