Show a terminal message if bridge is enabled but one is not set. By design, there is no easy way for us to get Tor bridges automatically

work on tor blocking detection
This commit is contained in:
Kevin Froman 2020-08-12 03:23:48 -05:00
parent e900d597d8
commit ce63c4cd3b
5 changed files with 11 additions and 7650 deletions

View file

@ -29,7 +29,7 @@ def add_bridges(torrc: str) -> str:
# allow blank fingerprint purposefully
fingerprint = config.get('tor.bridge_fingerprint', '')
torrc += '\nUseBridges 1\nBridge %s %s\n' % (bridge, fingerprint)
else:
if not bridge:
logger.error('Bridge was enabled but not specified in config, ' +
'this probably won\'t work', terminal=True)