forked from LBRYCommunity/lbry-sdk
parent
108d2a033b
commit
0501f52805
2 changed files with 7 additions and 2 deletions
|
@ -20,6 +20,7 @@ at anytime.
|
||||||
* edge cases of http mirrored download of blobs
|
* edge cases of http mirrored download of blobs
|
||||||
* ports with upnp redirects not showing the correct external port in log messages ( https://github.com/lbryio/lbry/issues/1338 )
|
* ports with upnp redirects not showing the correct external port in log messages ( https://github.com/lbryio/lbry/issues/1338 )
|
||||||
* miniupnpc fallback issue in txupnp ( https://github.com/lbryio/lbry/issues/1341 )
|
* miniupnpc fallback issue in txupnp ( https://github.com/lbryio/lbry/issues/1341 )
|
||||||
|
* upnp error when disabled on router and a non-gateway is found, such as chromecast ( https://github.com/lbryio/lbry/issues/1352 )
|
||||||
|
|
||||||
### Deprecated
|
### Deprecated
|
||||||
* automatic claim renew, this is no longer needed
|
* automatic claim renew, this is no longer needed
|
||||||
|
|
|
@ -683,8 +683,12 @@ class UPnPComponent(Component):
|
||||||
elif found and self.upnp.miniupnpc_runner:
|
elif found and self.upnp.miniupnpc_runner:
|
||||||
log.warning("failed to set up redirect with txupnp, miniupnpc fallback was successful")
|
log.warning("failed to set up redirect with txupnp, miniupnpc fallback was successful")
|
||||||
if found:
|
if found:
|
||||||
self.external_ip = yield self.upnp.get_external_ip()
|
try:
|
||||||
yield self._setup_redirects()
|
self.external_ip = yield self.upnp.get_external_ip()
|
||||||
|
yield self._setup_redirects()
|
||||||
|
except Exception as err:
|
||||||
|
log.warning("error trying to set up upnp: %s", err)
|
||||||
|
self.external_ip = CS.get_external_ip()
|
||||||
else:
|
else:
|
||||||
self.external_ip = CS.get_external_ip()
|
self.external_ip = CS.get_external_ip()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue