diff options
author | whew <73732390+whew@users.noreply.github.com> | 2021-04-24 09:59:53 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-24 09:59:53 +0000 |
commit | 161f20c1d6351bf9609410d0040096dc7546de49 (patch) | |
tree | dfd98551e4bbfa3cdffc8e5b63a3f2298bc67399 /cli/onionshare_cli/__init__.py | |
parent | 530f9547f5ac28e68e83ed827d334f66de99bdc4 (diff) | |
download | onionshare-161f20c1d6351bf9609410d0040096dc7546de49.tar.gz onionshare-161f20c1d6351bf9609410d0040096dc7546de49.zip |
Use socks5h instead of socks5
With `socks5h` the proxy server resolves the domain name, which avoids leaking DNS requests.
Diffstat (limited to 'cli/onionshare_cli/__init__.py')
-rw-r--r-- | cli/onionshare_cli/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/onionshare_cli/__init__.py b/cli/onionshare_cli/__init__.py index 1bd0582c..42ec9673 100644 --- a/cli/onionshare_cli/__init__.py +++ b/cli/onionshare_cli/__init__.py @@ -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) |