feat: 新增 anytls/tuic/hysteria2/socks5 协议解析

新增 anytls、tuic(tuic-v5)、hysteria2、socks5/socks5-tls 解析器,
修复 vmess WebSocket path 处理,并优化 Docker 构建配置。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-23 23:43:35 +08:00
parent fb7a30489e
commit 3bdba3e50f
11 changed files with 278 additions and 5 deletions

View File

@@ -1,5 +1,8 @@
FROM node:22-slim AS frontend
RUN corepack enable pnpm
# Pin pnpm: corepack otherwise auto-fetches the latest (pnpm 11), which no longer
# reads the "pnpm.onlyBuiltDependencies" field in package.json and fails the build
# on ignored install scripts (esbuild / better-sqlite3). v10 still honors that field.
RUN corepack enable pnpm && corepack prepare pnpm@10.34.3 --activate
WORKDIR /app/web
COPY web/package.json ./
RUN pnpm config set registry https://registry.npmmirror.com && pnpm install
@@ -7,7 +10,10 @@ COPY web/ ./
RUN pnpm run build
FROM node:22-slim AS production
RUN corepack enable pnpm
# Pin pnpm: corepack otherwise auto-fetches the latest (pnpm 11), which no longer
# reads the "pnpm.onlyBuiltDependencies" field in package.json and fails the build
# on ignored install scripts (esbuild / better-sqlite3). v10 still honors that field.
RUN corepack enable pnpm && corepack prepare pnpm@10.34.3 --activate
WORKDIR /app
# Switch to Aliyun mirror for faster apt downloads in China