mirror of
https://github.com/nodemailer/wildduck.git
synced 2024-11-10 17:47:07 +08:00
changes
This commit is contained in:
parent
c3d4add637
commit
c08a186f4e
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 = {};
|
||||
|
||||
httpsServerOptions.key = certOptions.key;
|
||||
serverOptions.key = httpsServerOptions.key = certOptions.key;
|
||||
if (httpsServerOptions.ca) {
|
||||
httpsServerOptions.ca = certOptions.ca;
|
||||
serverOptions.ca = httpsServerOptions.ca = certOptions.ca;
|
||||
}
|
||||
httpsServerOptions.certificate = certOptions.cert;
|
||||
serverOptions.certificate = httpsServerOptions.certificate = certOptions.cert;
|
||||
|
||||
let defaultSecureContext = tls.createSecureContext(httpsServerOptions);
|
||||
|
||||
|
|
Loading…
Reference in a new issue