aboutsummaryrefslogtreecommitdiff
path: root/src/js/node/tls.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/js/node/tls.js')
-rw-r--r--src/js/node/tls.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/js/node/tls.js b/src/js/node/tls.js
index fc2d9065a..bdf06faac 100644
--- a/src/js/node/tls.js
+++ b/src/js/node/tls.js
@@ -197,7 +197,7 @@ function checkServerIdentity(hostname, cert) {
let error = new Error(`ERR_TLS_CERT_ALTNAME_INVALID: Hostname/IP does not match certificate's altnames: ${reason}`);
error.name = "ERR_TLS_CERT_ALTNAME_INVALID";
error.reason = reason;
- error.host = host;
+ error.host = hostname;
error.cert = cert;
return error;
}