Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
SiCKRAGE
sickrage
Commits
1ee67982
Commit
1ee67982
authored
Aug 31, 2018
by
echel0n
Browse files
Fixed issue #265 - Unable to detect internal IP address in order to add UPnP portmap
parent
1e9d65bf
Changes
2
Hide whitespace changes
Inline
Side-by-side
changelog.md
View file @
1ee67982
# 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
...
...
sickrage/core/upnp.py
View file @
1ee67982
...
...
@@ -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
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment