mirror of
https://github.com/onionshare/onionshare.git
synced 2024-10-01 01:35:40 -04:00
Don't force connect timeout of 150 when using Bridges if a user-supplied connect timeout has been passed in already
This commit is contained in:
parent
99505a4c7d
commit
9a66e331b4
@ -283,6 +283,8 @@ class Onion(object):
|
||||
if self.settings.get('tor_bridges_use_custom_bridges') or \
|
||||
self.settings.get('tor_bridges_use_obfs4') or \
|
||||
self.settings.get('tor_bridges_use_meek_lite_azure'):
|
||||
# Only override timeout if a custom timeout has not been passed in
|
||||
if connect_timeout == 120:
|
||||
connect_timeout = 150
|
||||
if time.time() - start_ts > connect_timeout:
|
||||
print("")
|
||||
|
Loading…
Reference in New Issue
Block a user