Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

fix: patch ip usage

Sheen Capadnganc471fee292d7
diff --git a/backend/src/lib/gateway-v2/gateway-v2.ts b/backend/src/lib/gateway-v2/gateway-v2.ts
index 8e94dc2878..4db209231f 100644
--- a/backend/src/lib/gateway-v2/gateway-v2.ts
+++ b/backend/src/lib/gateway-v2/gateway-v2.ts
@@ -88,7 +88,7 @@ export const createRelayConnection = async ({
const serverCAs = splitPemChain(serverCertificateChain);
const tlsOptions: tls.ConnectionOptions = {
host: targetHost,
- servername: relayHost,
+ servername: net.isIP(relayHost) ? undefined : relayHost,
port,
cert: clientCertificate,
key: clientPrivateKey,