Disable UDP in proxy mode

This commit is contained in:
shortcutme 2019-08-17 20:34:04 +02:00
parent fcb3ac3917
commit 8537939d26
No known key found for this signature in database
GPG Key ID: 5B63BAE6CB9613AE
1 changed files with 1 additions and 0 deletions

View File

@ -83,6 +83,7 @@ if config.proxy:
logging.info("Patching sockets to socks proxy: %s" % config.proxy)
if config.fileserver_ip == "*":
config.fileserver_ip = '127.0.0.1' # Do not accept connections anywhere but localhost
config.disable_udp = True # UDP not supported currently with proxy
SocksProxy.monkeyPatch(*config.proxy.split(":"))
elif config.tor == "always":
from util import SocksProxy