Skip to content

Commit

Permalink
Pass through _httpsOptions to the TLS server
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Mrak committed Jan 27, 2015
1 parent 5137fea commit 14b2f74
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,17 +60,13 @@ function setupStartOptions(options, callback) {
}

function createHttpsOptions(options) {
var httpsOptions = {};
var httpsOptions = options._httpsOptions || {};

if (options.key && options.cert) {
httpsOptions = {
key: options.key,
cert: options.cert
};
httpsOptions.key = options.key;
httpsOptions.cert = options.cert;
} else if (options.pfx) {
httpsOptions = {
pfx: options.pfx
};
httpsOptions.pfx = options.pfx;
}

return httpsOptions;
Expand Down

0 comments on commit 14b2f74

Please sign in to comment.