GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(console): forward client IP to inference · dmouse/opencode@cf494c2

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • packages/console/app/src/lib
    • inference-proxy.ts
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎packages/console/app/src/lib/inference-proxy.ts‎

Copy file name to clipboardExpand all lines: packages/console/app/src/lib/inference-proxy.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export async function proxyInference(
8282
forwarded.headers.delete(name)
8383
forwarded.headers.set("authorization", `Bearer ${key}`)
8484
const ip = request.headers.get("cf-connecting-ip")
85-
if (ip) forwarded.headers.set("x-real-ip", ip)
85+
if (ip) forwarded.headers.set("x-zen-ip", ip)
8686
const requestID = request.headers.get("x-opencode-request-id") ?? request.headers.get("x-opencode-request")
8787
if (requestID) forwarded.headers.set("x-opencode-request-id", requestID)
8888

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.