chore: hapus fitur IPv6 source rotation

- Hapus src/lib/ipv6-pool.ts dan test
- Hapus fetchViaCurl() dari fetch-utils.ts
- Hapus parameter ipv6Source dari router, ai-proxy, anthropic-proxy
- Hapus ipv6Only: false dari Bun.serve(), default bind ke 0.0.0.0
- Hapus dokumentasi IPv6 dari CLAUDE.md dan README.md
- SSRF protection untuk IPv6 private/loopback tetap ada

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
MythEclipse
2026-06-27 12:10:25 +07:00
co-authored by Claude Opus 4.8
parent 9a379d09b5
commit f78f1f5bbf
8 changed files with 25 additions and 581 deletions
+2 -18
View File
@@ -1034,22 +1034,6 @@ export async function handleAnthropicMessages(
proxyPool?: ProxyPool,
sessionPool?: SessionProxyPool,
sessionId?: string,
ipv6Source?: string,
): Promise<Response>;
export async function handleAnthropicMessages(
body: unknown,
proxyPool?: ProxyPool,
sessionPool?: SessionProxyPool,
sessionId?: string,
ipv6Source?: string,
anthropicVersion?: string,
): Promise<Response>;
export async function handleAnthropicMessages(
body: unknown,
proxyPool?: ProxyPool,
sessionPool?: SessionProxyPool,
sessionId?: string,
ipv6Source?: string,
anthropicVersion?: string,
): Promise<Response> {
// -- Input validation -------------------------------------------------------
@@ -1091,8 +1075,8 @@ export async function handleAnthropicMessages(
// -- Execute with session-aware or standard retry --------------------------
const result: FetchWithRetryResult =
sessionPool && sessionId
? await fetchWithSessionRetry(url, init, sessionPool, sessionId, `anthropic:${req.model}`, undefined, ipv6Source)
: await fetchWithRetry(url, init, proxyPool, `anthropic:${req.model}`, ipv6Source);
? await fetchWithSessionRetry(url, init, sessionPool, sessionId, `anthropic:${req.model}`, undefined)
: await fetchWithRetry(url, init, proxyPool, `anthropic:${req.model}`);
if (result.errorClassification) {
if (sessionPool && sessionId) sessionPool.release(sessionId);