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:
parent
258f6e0629
commit
8853ec697d
|
|
@ -41,6 +41,7 @@ Alle Änderungen am Projekt. Format: [Keep a Changelog](https://keepachangelog.c
|
|||
- Handshake fehlgeschlagen `[object Object]` — Fehlermeldung wurde nicht korrekt stringifiziert
|
||||
- `client.id` und `client.mode` im Connect-Request — OpenClaw akzeptiert nur vordefinierte Werte (`cli`, `gateway-client`, `webchat` etc.)
|
||||
- `chat.send` nutzt `message` statt `text` als Parameter — OpenClaw Schema-Validierung
|
||||
- **Claude Proxy bindet auf 0.0.0.0** — `claude-max-api-proxy` bindet hardcoded auf `127.0.0.1`, nicht erreichbar im Docker-Netz. Fix: `standalone.js` wird beim Start gepatcht, liest jetzt `HOST` Env-Var (Upstream-Bug: `startServer()` unterstützt `host`, aber CLI übergibt es nicht)
|
||||
|
||||
---
|
||||
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue