Skip to content

Commit

Permalink
fixup! Teach Bridge._getVanillaForRequest() to filter blocked addresses.
Browse files Browse the repository at this point in the history
  • Loading branch information
isislovecruft committed Apr 18, 2015
1 parent 68b832b commit 4ff3182
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/bridgedb/bridges.py
Expand Up @@ -1135,8 +1135,7 @@ def _getVanillaForRequest(self, bridgeRequest):
if addresses:
# Use the client's unique data to HMAC them into their position in
# the hashring of filtered bridges addresses:
position = bridgeRequest.getHashringPlacement('Order-Or-Addresses',
bridgeRequest.client)
position = bridgeRequest.getHashringPlacement('Order-Or-Addresses')
vanilla = addresses[position % len(addresses)]
logging.info("Got vanilla bridge for client.")

Expand Down

0 comments on commit 4ff3182

Please sign in to comment.