Merge pull request #1332 from whew/patch-2

Use socks5h instead of socks5
This commit is contained in:
Micah Lee 2021-04-25 17:41:09 -04:00 committed by GitHub
commit 6ef93c764f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

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

View File

@ -275,8 +275,8 @@ class ReceiveMode(Mode):
else: else:
(socks_address, socks_port) = self.common.gui.onion.get_tor_socks_port() (socks_address, socks_port) = self.common.gui.onion.get_tor_socks_port()
self.web.proxies = { self.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}",
} }
def start_server_step2_custom(self): def start_server_step2_custom(self):