summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/_tls_wrap.js10
1 files changed, 2 insertions, 8 deletions
diff --git a/lib/_tls_wrap.js b/lib/_tls_wrap.js
index 63115d59b8..d29182d585 100644
--- a/lib/_tls_wrap.js
+++ b/lib/_tls_wrap.js
@@ -1114,20 +1114,14 @@ Server.prototype.setSecureContext = function(options) {
else
this.crl = undefined;
- if (options.sigalgs !== undefined)
- this.sigalgs = options.sigalgs;
- else
- this.sigalgs = undefined;
+ this.sigalgs = options.sigalgs;
if (options.ciphers)
this.ciphers = options.ciphers;
else
this.ciphers = undefined;
- if (options.ecdhCurve !== undefined)
- this.ecdhCurve = options.ecdhCurve;
- else
- this.ecdhCurve = undefined;
+ this.ecdhCurve = options.ecdhCurve;
if (options.dhparam)
this.dhparam = options.dhparam;