fix(console): forward client IP to inference
This commit is contained in:
parent
c10134729d
commit
cf494c2029
1 changed files with 1 additions and 1 deletions
|
|
@ -82,7 +82,7 @@ export async function proxyInference(
|
|||
forwarded.headers.delete(name)
|
||||
forwarded.headers.set("authorization", `Bearer ${key}`)
|
||||
const ip = request.headers.get("cf-connecting-ip")
|
||||
if (ip) forwarded.headers.set("x-real-ip", ip)
|
||||
if (ip) forwarded.headers.set("x-zen-ip", ip)
|
||||
const requestID = request.headers.get("x-opencode-request-id") ?? request.headers.get("x-opencode-request")
|
||||
if (requestID) forwarded.headers.set("x-opencode-request-id", requestID)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue