Skip to content

Commit 14b2f74

Browse files
author
Eric Mrak
committed
Pass through _httpsOptions to the TLS server
1 parent 5137fea commit 14b2f74

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

lib/main.js

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -60,17 +60,13 @@ function setupStartOptions(options, callback) {
6060
}
6161

6262
function createHttpsOptions(options) {
63-
var httpsOptions = {};
63+
var httpsOptions = options._httpsOptions || {};
6464

6565
if (options.key && options.cert) {
66-
httpsOptions = {
67-
key: options.key,
68-
cert: options.cert
69-
};
66+
httpsOptions.key = options.key;
67+
httpsOptions.cert = options.cert;
7068
} else if (options.pfx) {
71-
httpsOptions = {
72-
pfx: options.pfx
73-
};
69+
httpsOptions.pfx = options.pfx;
7470
}
7571

7672
return httpsOptions;

0 commit comments

Comments
 (0)