Commit 1ee67982 authored by echel0n's avatar echel0n
Browse files

Fixed issue #265 - Unable to detect internal IP address in order to add UPnP portmap

parent 1e9d65bf
# Changelog
- * 9098c26 - 2018-08-30: Release v9.3.65
- * c868811 - 2018-08-31: Fixed issue #265 - Unable to detect internal IP address in order to add UPnP portmap
- * ab769b0 - 2018-08-30: Release v9.3.65
- * 889fa19 - 2018-08-30: Fixed issues with failed snatch searcher attempting to re-download archived episodes
- * cd59c7f - 2018-08-30: Pre-Release v9.3.65.dev3
- * 61c0376 - 2018-08-30: Pre-Release v9.3.65.dev2
......
......@@ -68,10 +68,10 @@ class UPNPClient(object):
sickrage.app.log.exception("Failed to add UPnP portmap")
def _add_nat_portmap(self, upnp_dev):
internal_ip = self._find_internal_ip_on_device_network(upnp_dev)
if internal_ip is None:
sickrage.app.log.warn("Unable to detect internal IP address in order to add UPnP portmap")
return
# internal_ip = self._find_internal_ip_on_device_network(upnp_dev)
# if internal_ip is None:
# sickrage.app.log.warn("Unable to detect internal IP address in order to add UPnP portmap")
# return
for protocol, description in [('TCP', 'SiCKRAGE')]:
upnp_dev.WANIPConn1.AddPortMapping(
......@@ -79,7 +79,7 @@ class UPNPClient(object):
NewExternalPort=sickrage.app.config.web_external_port,
NewProtocol=protocol,
NewInternalPort=sickrage.app.config.web_port,
NewInternalClient=internal_ip,
NewInternalClient=sickrage.app.config.web_host,
NewEnabled='1',
NewPortMappingDescription=description,
NewLeaseDuration=self._nat_portmap_lifetime,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment