diff --git a/lbrynet/lbrynet_daemon/Lighthouse.py b/lbrynet/lbrynet_daemon/Lighthouse.py index 245c0ae36..d12d87841 100644 --- a/lbrynet/lbrynet_daemon/Lighthouse.py +++ b/lbrynet/lbrynet_daemon/Lighthouse.py @@ -2,14 +2,14 @@ import logging import random from txjsonrpc.web.jsonrpc import Proxy from twisted.internet import defer -from lbrynet.conf import SEARCH_SERVERS +from lbrynet.conf import SEARCH_SERVERS log = logging.getLogger(__name__) class LighthouseClient(object): - def __init__(self): - self.servers = SEARCH_SERVERS + def __init__(self, servers=None): + self.servers = servers or SEARCH_SERVERS def _get_random_server(self): return Proxy(random.choice(self.servers))