mirror of
https://github.com/onionshare/onionshare.git
synced 2025-01-10 03:37:28 -03:00
Use socks5h instead of socks5
With `socks5h` the proxy server resolves the domain name, which avoids leaking DNS requests.
This commit is contained in:
parent
530f9547f5
commit
161f20c1d6
1 changed files with 2 additions and 2 deletions
|
@ -376,8 +376,8 @@ def main(cwd=None):
|
|||
else:
|
||||
(socks_address, socks_port) = onion.get_tor_socks_port()
|
||||
web.proxies = {
|
||||
"http": f"socks5://{socks_address}:{socks_port}",
|
||||
"https": f"socks5://{socks_address}:{socks_port}",
|
||||
"http": f"socks5h://{socks_address}:{socks_port}",
|
||||
"https": f"socks5h://{socks_address}:{socks_port}",
|
||||
}
|
||||
|
||||
app = OnionShare(common, onion, local_only, autostop_timer)
|
||||
|
|
Loading…
Reference in a new issue