Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
re6stnet
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
6
Merge Requests
6
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
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
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