From 3e014928fe1b673735bbceafe67982e85b0fbaf4 Mon Sep 17 00:00:00 2001 From: "adrian.sampson" Date: Wed, 1 Apr 2009 22:46:54 +0000 Subject: [PATCH] changed default bind addr to '' --HG-- extra : convert_revision : svn%3A41726ec3-264d-0410-9c23-a9f1637257cc/trunk%40158 --- beets/player/bpd.py | 4 ++-- bts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/beets/player/bpd.py b/beets/player/bpd.py index 762d175b8..b4d4b6277 100755 --- a/beets/player/bpd.py +++ b/beets/player/bpd.py @@ -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 diff --git a/bts b/bts index 1a5cae0c6..e257045ca 100755 --- a/bts +++ b/bts @@ -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