mirror of
https://github.com/onionshare/onionshare.git
synced 2024-12-24 06:49:44 -05: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
@ -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 New Issue
Block a user