fix: 管理员口令改为哈希并限制连续失败

This commit is contained in:
2026-11-16 02:35:15 +08:00
parent 77f80ad0e1
commit 0fbc3146d8
11 changed files with 209 additions and 26 deletions
+3 -1
View File
@@ -1,3 +1,5 @@
import os
import httpx
from fastapi.testclient import TestClient
@@ -10,7 +12,7 @@ from euniv.proxy import bind_url, is_proxy_failure, view_of
from euniv.proxy_pool import PROBE_URLS, acquire, mark_failed, page, probe, refresh_once, release
from euniv.proxy_pool import _holds
INITIAL_PASSWORD = "242520"
INITIAL_PASSWORD = os.environ["EUNIV_ADMIN_PASSWORD"]
def _node(host: str, port: int, status: str = "alive", scheme: str = "http", assigns: int = 0) -> ProxyNode: