mirror of
https://github.com/onionshare/onionshare.git
synced 2025-02-11 20:29:15 -05: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
726cb0ad9e
commit
d7ba11ef0c
@ -283,7 +283,9 @@ 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'):
|
||||
connect_timeout = 150
|
||||
# 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("")
|
||||
try:
|
||||
|
Loading…
x
Reference in New Issue
Block a user