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
Joanne Hugé
re6stnet
Commits
e8629de5
Commit
e8629de5
authored
Apr 08, 2021
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not kill a preferred tunnel if it would recreate the same tunnel afterwards
parent
721f9d43
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
re6st/tunnel.py
re6st/tunnel.py
+2
-1
No files found.
re6st/tunnel.py
View file @
e8629de5
...
...
@@ -840,7 +840,8 @@ class TunnelManager(BaseTunnelManager):
# Keep only a small number of tunnels if server is not reachable
# (user should configure NAT properly).
if
(
self
.
_client_count
if
self
.
_served
or
self
.
_disconnected
else
min
(
2
,
self
.
_client_count
))
<=
len
(
peer_set
):
min
(
2
,
self
.
_client_count
))
<=
len
(
peer_set
)
and
\
peer_set
!=
self
.
_neighbour_set
:
prefix
=
min
(
peer_set
,
key
=
self
.
_tunnelScore
)
self
.
_killing
[
prefix
]
=
TunnelKiller
(
prefix
,
self
,
True
)
...
...
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