mirror of
https://github.com/MatrixTM/MHDDoS.git
synced 2024-11-16 11:42:42 +08:00
Fixed form to from in line 981
There's a typo where it says form but it's supposed to be from.
This commit is contained in:
parent
ee8dd0c4c3
commit
5ae42d093c
4
start.py
4
start.py
|
@ -978,7 +978,7 @@ class ProxyManager:
|
||||||
provider for provider in cf["proxy-providers"]
|
provider for provider in cf["proxy-providers"]
|
||||||
if provider["type"] == Proxy_type or Proxy_type == 0
|
if provider["type"] == Proxy_type or Proxy_type == 0
|
||||||
]
|
]
|
||||||
logger.info("Downloading Proxies form %d Providers" % len(providrs))
|
logger.info("Downloading Proxies from %d Providers" % len(providrs))
|
||||||
proxes: Set[Proxy] = set()
|
proxes: Set[Proxy] = set()
|
||||||
|
|
||||||
with ThreadPoolExecutor(len(providrs)) as executor:
|
with ThreadPoolExecutor(len(providrs)) as executor:
|
||||||
|
@ -996,7 +996,7 @@ class ProxyManager:
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def download(provider, proxy_type: ProxyType) -> Set[Proxy]:
|
def download(provider, proxy_type: ProxyType) -> Set[Proxy]:
|
||||||
logger.debug(
|
logger.debug(
|
||||||
"Downloading Proxies form (URL: %s, Type: %s, Timeout: %d)" %
|
"Downloading Proxies from (URL: %s, Type: %s, Timeout: %d)" %
|
||||||
(provider["url"], proxy_type.name, provider["timeout"]))
|
(provider["url"], proxy_type.name, provider["timeout"]))
|
||||||
proxes: Set[Proxy] = set()
|
proxes: Set[Proxy] = set()
|
||||||
with suppress(TimeoutError, exceptions.ConnectionError,
|
with suppress(TimeoutError, exceptions.ConnectionError,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user