summaryrefslogtreecommitdiff
path: root/lib/tls.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tls.js')
-rw-r--r--lib/tls.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/tls.js b/lib/tls.js
index 24062832a5..1abeb77873 100644
--- a/lib/tls.js
+++ b/lib/tls.js
@@ -105,12 +105,12 @@ exports.checkServerIdentity = function checkServerIdentity(host, cert) {
return new RegExp('^' + re + '$', 'i');
}
- var dnsNames = [],
- uriNames = [],
- ips = [],
- matchCN = true,
- valid = false,
- reason = 'Unknown reason';
+ var dnsNames = [];
+ var uriNames = [];
+ const ips = [];
+ var matchCN = true;
+ var valid = false;
+ var reason = 'Unknown reason';
// There're several names to perform check against:
// CN and altnames in certificate extension