refactor(gateway): move request client ip resolution to net

This commit is contained in:
Peter Steinberger
2026-03-12 21:41:51 +00:00
parent 904db27019
commit 1d986f1c01
3 changed files with 24 additions and 18 deletions

View File

@@ -23,7 +23,6 @@ import {
import {
authorizeHttpGatewayConnect,
isLocalDirectRequest,
resolveRequestClientIp,
type GatewayAuthResult,
type ResolvedGatewayAuth,
} from "./auth.js";
@@ -53,6 +52,7 @@ import {
} from "./hooks.js";
import { sendGatewayAuthFailure, setDefaultSecurityHeaders } from "./http-common.js";
import { getBearerToken } from "./http-utils.js";
import { resolveRequestClientIp } from "./net.js";
import { handleOpenAiHttpRequest } from "./openai-http.js";
import { handleOpenResponsesHttpRequest } from "./openresponses-http.js";
import {