From 9511040d5aecac02042a2a8dc4e206c658c0d3de Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Sun, 5 Aug 2018 13:12:39 -0400 Subject: [PATCH] fix upnp and peer port setup --- lbrynet/daemon/Components.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lbrynet/daemon/Components.py b/lbrynet/daemon/Components.py index 593135034..1d46e69b4 100644 --- a/lbrynet/daemon/Components.py +++ b/lbrynet/daemon/Components.py @@ -573,7 +573,7 @@ class PeerProtocolServerComponent(Component): @defer.inlineCallbacks def start(self): wallet = self.component_manager.get_component(WALLET_COMPONENT) - peer_port = self.component_manager.get_component(UPNP_COMPONENT).upnp_redirects["TCP"] + peer_port = self.component_manager.get_component(UPNP_COMPONENT).get_redirects()[0] query_handlers = { handler.get_primary_query_identifier(): handler for handler in [ BlobRequestHandlerFactory( @@ -675,6 +675,8 @@ class UPnPComponent(Component): @defer.inlineCallbacks def start(self): + if not self.use_upnp: + return log.debug("In _try_upnp") found = yield self.upnp.discover() if found and not self.upnp.miniupnpc_runner: