claude-max-api-proxy hat host hardcoded auf 127.0.0.1 in standalone.js — die startServer() Funktion unterstützt zwar einen host Parameter, aber der CLI-Einstiegspunkt übergibt ihn nie.

This commit is contained in:
2026-03-12 01:47:01 +01:00
parent 258f6e0629
commit 8853ec697d
2 changed files with 6 additions and 1 deletions
+5 -1
View File
@@ -4,7 +4,11 @@ services:
proxy:
image: node:22-alpine
container_name: aria-proxy
command: sh -c "npm install -g @anthropic-ai/claude-code claude-max-api-proxy && claude-max-api"
command: >-
sh -c "npm install -g @anthropic-ai/claude-code claude-max-api-proxy &&
STANDALONE=$(find /usr/local/lib -path '*/claude-max-api-proxy/dist/server/standalone.js' | head -1) &&
sed -i 's/startServer({ port })/startServer({ port, host: process.env.HOST || \"127.0.0.1\" })/' $$STANDALONE &&
claude-max-api"
volumes:
- ~/.config/claude:/root/.config/claude:ro # Claude CLI Auth
environment: