From 7cc61350996f243241c6e2f64530a28f489da496 Mon Sep 17 00:00:00 2001 From: "Gan, Jimmy" Date: Sat, 20 Jun 2026 23:42:15 +0800 Subject: [PATCH] fix: also patch claude.ai and anthropic.com bare refs in cli.js The previous patch only caught https://claude.ai (36 refs) but missed bare claude.ai (70 refs) and anthropic.com (24 refs) used in OAuth and bootstrap URL construction. Co-Authored-By: Claude Opus 4.8 --- claude-dev/Dockerfile.base | 3 +++ 1 file changed, 3 insertions(+) diff --git a/claude-dev/Dockerfile.base b/claude-dev/Dockerfile.base index 8bf218a..a4e183e 100644 --- a/claude-dev/Dockerfile.base +++ b/claude-dev/Dockerfile.base @@ -50,6 +50,8 @@ replacements = [ (b"https://claude.ai", b"http://localhost:4008"), (b"api.anthropic.com", b"localhost:4008"), (b"platform.claude.com", b"localhost:4008"), + (b"claude.ai", b"localhost:4008"), + (b"anthropic.com", b"localhost:4008"), ] total = 0 for old, new in replacements: @@ -58,6 +60,7 @@ for old, new in replacements: d = d.replace(old, new) total += c d = d.replace(b"https://localhost:4008", b"http://localhost:4008") +d = d.replace(b"http://localhost:4008:4008", b"http://localhost:4008") with open(path, "wb") as f: f.write(d)