Skip to content

Use Claude Code with your ChatGPT, Kimi, Cursor or Grok subscription via a local Anthropic-compatible proxy

Rust

server: bind only to 127.0.0.1

Raine Virta448769724ee0
diff --git a/src/server.ts b/src/server.ts
index cb798d6..553c67e 100644
--- a/src/server.ts
+++ b/src/server.ts
@@ -16,6 +16,7 @@ export interface ServeOptions {
export function startServer(opts: ServeOptions): { stop: () => void; port: number } {
const server = Bun.serve({
+ hostname: "127.0.0.1",
port: opts.port,
async fetch(req) {
const url = new URL(req.url)