This commit is contained in:
emdee
2022-10-28 02:33:36 +00:00
parent a3ad33495a
commit 41d9fe95c1
4 changed files with 32 additions and 24 deletions

View File

@@ -61,6 +61,11 @@ def pick_up_proxy_from_environ():
retval['proxy_port'] = proxy.split(':')[-1]
retval['proxy_type'] = 1
retval['udp_enabled'] = False
else:
retval['proxy_host'] = ''
retval['proxy_port'] = ''
retval['proxy_type'] = 0
retval['udp_enabled'] = True
return retval
def download_url(url, settings=None):