diff --git a/src/cli/gateway-cli/run.ts b/src/cli/gateway-cli/run.ts index 2845197efe5..6c0d2277f45 100644 --- a/src/cli/gateway-cli/run.ts +++ b/src/cli/gateway-cli/run.ts @@ -247,7 +247,7 @@ async function runGatewayCommand(opts: GatewayRunOpts) { defaultRuntime.exit(1); return; } - if (bind !== "loopback" && !hasSharedSecret) { + if (bind !== "loopback" && !hasSharedSecret && resolvedAuthMode !== "trusted-proxy") { defaultRuntime.error( [ `Refusing to bind gateway to ${bind} without auth.`,