servername host for mssql

This commit is contained in:
x032205
2025-08-06 19:53:13 -04:00
parent 59cffe8cfb
commit e105a5f7da
@@ -44,7 +44,8 @@ const getConnectionConfig = ({
? { ? {
trustServerCertificate: !sslRejectUnauthorized, trustServerCertificate: !sslRejectUnauthorized,
encrypt: true, encrypt: true,
cryptoCredentialsDetails: sslCertificate ? { ca: sslCertificate } : {} cryptoCredentialsDetails: sslCertificate ? { ca: sslCertificate } : {},
servername: host
} }
: { encrypt: false } : { encrypt: false }
}; };