mirror of
https://github.com/onionshare/onionshare.git
synced 2024-10-01 01:35:40 -04:00
Merge pull request #1332 from whew/patch-2
Use socks5h instead of socks5
This commit is contained in:
commit
6ef93c764f
@ -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)
|
||||
|
@ -275,8 +275,8 @@ class ReceiveMode(Mode):
|
||||
else:
|
||||
(socks_address, socks_port) = self.common.gui.onion.get_tor_socks_port()
|
||||
self.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}",
|
||||
}
|
||||
|
||||
def start_server_step2_custom(self):
|
||||
|
Loading…
Reference in New Issue
Block a user