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
The Tor Project
Anti-censorship
BridgeDB
Commits
df660bb6
Unverified
Commit
df660bb6
authored
Jan 12, 2014
by
Isis Lovecruft
Browse files
Log a message if there is a duplicate bridge from a sub-hashring.
parent
06f67dc2
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/bridgedb/Bridges.py
View file @
df660bb6
...
...
@@ -871,6 +871,10 @@ class BridgeRing(BridgeHolder):
for
k
in
forced
+
self
.
_getBridgeKeysAt
(
pos
,
N
):
if
k
not
in
keys
:
keys
.
append
(
k
)
else
:
logging
.
debug
(
"Got duplicate bridge %r in main hashring for position %r."
%
(
Util
.
logSafely
(
k
.
encode
(
'hex'
)),
pos
.
encode
(
'hex'
)))
keys
=
keys
[:
N
]
keys
.
sort
()
...
...
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