Skip to content
This repository was archived by the owner on Mar 2, 2022. It is now read-only.

Commit fc9d538

Browse files
authored
Merge pull request #61 from TheTorProject/no-authority-measurements
Prevent authorities from being selected in the exit position
2 parents 2e76e64 + 5a61e16 commit fc9d538

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

bwscanner/circuit.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ def is_valid_exit(relay):
2626
2727
TODO: Check the exit policy
2828
"""
29-
return ('exit' in relay.flags and 'badexit' not in relay.flags)
29+
is_exit = ('exit' in relay.flags and 'badexit' not in relay.flags)
30+
return is_exit and 'authority' not in relay.flags
3031

3132

3233
class ExitScan(CircuitGenerator):

0 commit comments

Comments
 (0)