Use socks5h instead of socks5

With `socks5h` the proxy server resolves the domain name, which avoids leaking DNS requests.
This commit is contained in:
whew 2021-04-24 09:59:53 +00:00 committed by GitHub
parent 530f9547f5
commit 161f20c1d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)