Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
juga
sbws
Commits
033603a6
Commit
033603a6
authored
Dec 13, 2020
by
juga
Browse files
fix: scanner: Retry to measure exit as exit
if it fails to be measured as entry. Mayb closes: #40029.
parent
3a4a47d3
Pipeline
#1938
passed with stage
in 72 minutes and 36 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
sbws/core/scanner.py
View file @
033603a6
...
...
@@ -318,6 +318,17 @@ def measure_relay(args, conf, destinations, cb, rl, relay):
# Build the circuit
circ_id
,
reason
=
cb
.
build_circuit
(
circ_fps
)
if
not
circ_id
and
relay
.
fingerprint
==
circ_fps
[
0
]:
# We detected that some exits fail to build circuits as 1st hop.
# If that's the case, try again using them as 2nd hop.
# We could reuse the helper, but it does not need to be an exit now,
# so choose other again.
helper
=
_pick_ideal_second_hop
(
relay
,
dest
,
rl
,
cb
.
controller
,
is_exit
=
False
)
if
helper
:
circ_fps
=
[
helper
.
fingerprint
,
relay
.
fingerprint
]
nicknames
=
[
helper
.
nickname
,
relay
.
nickname
]
circ_id
,
reason
=
cb
.
build_circuit
(
circ_fps
)
if
not
circ_id
:
log
.
debug
(
'Could not build circuit with path %s (%s): %s '
,
circ_fps
,
nicknames
,
reason
)
...
...
Write
Preview
Supports
Markdown
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