Bind to 127.0.0.1 as default, since 'localhost' is IPv6-only on IPv6-enabled hosts

This commit is contained in:
Stein Magnus Jodal 2010-06-20 23:02:07 +02:00
parent 7b78c86d43
commit febd7ebc15

View File

@ -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