Update start.py

This commit is contained in:
MH_ProDev 2022-03-02 00:09:53 +03:30 committed by GitHub
parent 60ce05b67f
commit ef881baaed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -768,9 +768,9 @@ class ProxyManager:
logger.info("Downloading Proxies form %d Providers" % len(cf["proxy-providers"]))
for provider in cf["proxy-providers"]:
if provider["type"] != Proxy_type and Proxy_type != 0: continue
typ = ProxyType.stringToProxyType(str(provider["type"])
typ = ProxyType.stringToProxyType(str(provider["type"]))
logger.debug("Downloading Proxies form (URL: %s, Type: %s, Timeout: %d)" % (provider["url"], typ.name, provider["timeout"]))
ProxyManager.download(provider, proxes, lock, typ))
ProxyManager.download(provider, proxes, lock, typ)
return proxes
@staticmethod