changed default bind addr to ''

--HG--
extra : convert_revision : svn%3A41726ec3-264d-0410-9c23-a9f1637257cc/trunk%40158
This commit is contained in:
adrian.sampson 2009-04-01 22:46:54 +00:00
parent e7f4283368
commit 3e014928fe
2 changed files with 3 additions and 3 deletions

View file

@ -167,7 +167,7 @@ class Server(object):
This is a generic superclass and doesn't support many commands.
"""
def __init__(self, host, port=DEFAULT_PORT):
def __init__(self, host='', port=DEFAULT_PORT):
"""Create a new server bound to address `host` and listening
on port `port`.
"""
@ -632,7 +632,7 @@ class BGServer(Server):
library.
"""
def __init__(self, library, host='127.0.0.1', port=DEFAULT_PORT):
def __init__(self, library, host='', port=DEFAULT_PORT):
from beets.player.gstplayer import GstPlayer
super(BGServer, self).__init__(host, port)
self.lib = library

2
bts
View file

@ -56,7 +56,7 @@ def read(lib, criteria):
lib.save()
def bpd(lib, opts):
host = opts.pop(0) if opts else '127.0.0.1'
host = opts.pop(0) if opts else ''
port = int(opts.pop(0)) if opts else 6600
import beets.player.bpd