This commit is contained in:
Yuriy Yuriev
2026-05-22 19:01:44 +07:00
parent a411f2b65e
commit b276794c0a
2 changed files with 185 additions and 1 deletions
+3 -1
View File
@@ -221,8 +221,9 @@ class ProxyManager:
if not explicit_type:
self._needs_detection.add(proxy.id)
random.shuffle(self._proxies)
logger.info(f"Loaded {len(loaded)} proxies from {self.proxy_file}")
# Статистика по типам
type_counts = defaultdict(int)
for p in loaded:
@@ -374,6 +375,7 @@ class ProxyManager:
if all_used:
logger.info("All proxies used once, resetting used list")
self._used_ids.clear()
random.shuffle(self._proxies)
logger.debug(f"No proxies available (attempt {attempt})")