mirror of
https://github.com/torproject/torbrowser-launcher.git
synced 2024-11-23 01:19:42 +00:00
Format all python with black, and add a .vscode folder
This commit is contained in:
parent
7a698a0260
commit
ad55f02bfb
3
.vscode/settings.json
vendored
Normal file
3
.vscode/settings.json
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"python.formatting.provider": "black"
|
||||
}
|
@ -551,12 +551,11 @@ class DownloadThread(QtCore.QThread):
|
||||
self.path = path
|
||||
|
||||
# Use tor socks5 proxy, if enabled
|
||||
if self.common.settings['download_over_tor']:
|
||||
socks5_address = 'socks5h://{}'.format(self.common.settings['tor_socks_address'])
|
||||
self.proxies = {
|
||||
'https': socks5_address,
|
||||
'http': socks5_address
|
||||
}
|
||||
if self.common.settings["download_over_tor"]:
|
||||
socks5_address = "socks5h://{}".format(
|
||||
self.common.settings["tor_socks_address"]
|
||||
)
|
||||
self.proxies = {"https": socks5_address, "http": socks5_address}
|
||||
else:
|
||||
self.proxies = None
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user