Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sbws
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
juga
sbws
Commits
50377680
Commit
50377680
authored
4 years ago
by
juga
Browse files
Options
Downloads
Patches
Plain Diff
fix: scanner: remove relay to measure as helper
parent
a570a707
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sbws/core/scanner.py
+6
-0
6 additions, 0 deletions
sbws/core/scanner.py
with
6 additions
and
0 deletions
sbws/core/scanner.py
+
6
−
0
View file @
50377680
...
...
@@ -219,6 +219,12 @@ def _pick_ideal_second_hop(relay, dest, rl, cont, is_exit):
if
is_exit
else
rl
.
non_exits
if
not
len
(
candidates
):
return
None
# In the case the helper is an exit, the entry could be an exit too
# (#40041), so ensure the helper is not the same as the entry, likely to
# happen in a test network.
if
is_exit
:
candidates
=
[
c
for
c
in
candidates
if
c
.
fingerprint
!=
relay
.
fingerprint
]
min_relay_bw
=
rl
.
exit_min_bw
()
if
is_exit
else
rl
.
non_exit_min_bw
()
log
.
debug
(
'
Picking a 2nd hop to measure %s from %d choices. is_exit=%s
'
,
relay
.
nickname
,
len
(
candidates
),
is_exit
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment