mirror of
https://github.com/nodemailer/wildduck.git
synced 2025-09-08 14:15:40 +08:00
fixed SNI for API
This commit is contained in:
parent
ecb694f64d
commit
439b663815
1 changed files with 3 additions and 3 deletions
6
api.js
6
api.js
|
@ -139,11 +139,11 @@ certs.loadTLSOptions(certOptions, 'api');
|
|||
if (config.api.secure && certOptions.key) {
|
||||
let httpsServerOptions = {};
|
||||
|
||||
serverOptions.key = httpsServerOptions.key = certOptions.key;
|
||||
httpsServerOptions.key = certOptions.key;
|
||||
if (httpsServerOptions.ca) {
|
||||
serverOptions.ca = httpsServerOptions.ca = certOptions.ca;
|
||||
httpsServerOptions.ca = certOptions.ca;
|
||||
}
|
||||
serverOptions.certificate = httpsServerOptions.certificate = certOptions.cert;
|
||||
httpsServerOptions.cert = certOptions.cert;
|
||||
|
||||
let defaultSecureContext = tls.createSecureContext(httpsServerOptions);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue