feat: aether-proxy TLS 双栈支持与自签名证书自动生成

- aether-proxy 新增 TLS 模块:自签名证书生成、TLS acceptor 构建、证书 SHA-256 指纹计算
- 代理服务器支持 HTTP+TLS 双栈模式,通过 peek 首字节区分 TLS ClientHello 与普通 HTTP
- 注册与心跳上报 tls_enabled 和 tls_cert_fingerprint 字段
- Python 侧 httpx 代理适配:TLS 代理使用 httpx.Proxy + CERT_NONE ssl_context
- ProxyNode 模型新增 tls_enabled/tls_cert_fingerprint 字段及对应迁移
This commit is contained in:
fawney19
2026-02-07 23:18:58 +08:00
parent 10bd14c223
commit 5384ffd403
17 changed files with 588 additions and 79 deletions

View File

@@ -213,7 +213,7 @@ def _parse_session_user_id(cookie_input: str) -> tuple[str | None, str | None]:
async def _get_acw_cookie(
base_url: str, timeout: float = 10, proxy: str | None = None
base_url: str, timeout: float = 10, proxy: str | httpx.Proxy | None = None
) -> str | None:
"""
获取 acw_sc__v2 Cookie

View File

@@ -53,7 +53,7 @@ class ProviderConnector(ABC):
# 代理配置(支持 proxy_node_id 和旧的 proxy URL
from src.clients.http_client import resolve_ops_proxy
self._proxy: str | None = resolve_ops_proxy(self.config)
self._proxy: str | httpx.Proxy | None = resolve_ops_proxy(self.config)
# HTTP 客户端配置
self._timeout = self.config.get("timeout", 30)