misc: added sni

This commit is contained in:
Sheen Capadngan
2025-12-11 00:33:25 +08:00
parent 45350a68aa
commit ff9644a14d
@@ -51,7 +51,8 @@ export const executeWithGateway = async <T>(
} }
const httpsAgent = new https.Agent({ const httpsAgent = new https.Agent({
ca: connectionDetails.sslCertificate, ca: connectionDetails.sslCertificate,
rejectUnauthorized: connectionDetails.sslRejectUnauthorized rejectUnauthorized: connectionDetails.sslRejectUnauthorized,
servername: targetHost
}); });
return withGatewayV2Proxy( return withGatewayV2Proxy(
async (proxyPort) => { async (proxyPort) => {