forked from LBRYCommunity/lbry-sdk
propagate external ip changes from upnp component to dht node protocol
This commit is contained in:
parent
f05dc46432
commit
6254f53716
1 changed files with 4 additions and 0 deletions
|
@ -481,6 +481,10 @@ class UPnPComponent(Component):
|
|||
log.info("external ip changed from %s to %s", self.external_ip, external_ip)
|
||||
if external_ip:
|
||||
self.external_ip = external_ip
|
||||
dht_component = self.component_manager.get_component(DHT_COMPONENT)
|
||||
if dht_component:
|
||||
dht_node = dht_component.component
|
||||
dht_node.protocol.external_ip = external_ip
|
||||
# assert self.external_ip is not None # TODO: handle going/starting offline
|
||||
|
||||
if not self.upnp_redirects and self.upnp: # setup missing redirects
|
||||
|
|
Loading…
Reference in a new issue