Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
re6stnet
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
re6stnet
Commits
dc9124c5
Commit
dc9124c5
authored
Sep 24, 2012
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not abort when UPnP fails to refresh port forwarding
parent
f2b67235
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
re6st/upnpigd.py
re6st/upnpigd.py
+6
-1
No files found.
re6st/upnpigd.py
View file @
dc9124c5
...
@@ -41,7 +41,12 @@ class Forwarder:
...
@@ -41,7 +41,12 @@ class Forwarder:
def
refresh
(
self
):
def
refresh
(
self
):
logging
.
debug
(
'Refreshing port forwarding'
)
logging
.
debug
(
'Refreshing port forwarding'
)
for
args
in
self
.
_rules
:
for
args
in
self
.
_rules
:
self
.
_u
.
addportmapping
(
*
args
)
try
:
self
.
_u
.
addportmapping
(
*
args
)
except
Exception
,
e
:
if
str
(
e
)
!=
'UnknownError'
:
raise
logging
.
warning
(
"Failed to refresh port forwarding: %s"
,
args
)
self
.
next_refresh
=
time
.
time
()
+
500
self
.
next_refresh
=
time
.
time
()
+
500
def
clear
(
self
):
def
clear
(
self
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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