mirror of
https://github.com/onionshare/onionshare.git
synced 2025-01-12 07:49:39 -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:
|
else:
|
||||||
(socks_address, socks_port) = onion.get_tor_socks_port()
|
(socks_address, socks_port) = onion.get_tor_socks_port()
|
||||||
web.proxies = {
|
web.proxies = {
|
||||||
"http": f"socks5://{socks_address}:{socks_port}",
|
"http": f"socks5h://{socks_address}:{socks_port}",
|
||||||
"https": f"socks5://{socks_address}:{socks_port}",
|
"https": f"socks5h://{socks_address}:{socks_port}",
|
||||||
}
|
}
|
||||||
|
|
||||||
app = OnionShare(common, onion, local_only, autostop_timer)
|
app = OnionShare(common, onion, local_only, autostop_timer)
|
||||||
|
Loading…
Reference in New Issue
Block a user