summaryrefslogtreecommitdiff
path: root/test/parallel/test-https-localaddress-bind-error.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-https-localaddress-bind-error.js')
-rw-r--r--test/parallel/test-https-localaddress-bind-error.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/parallel/test-https-localaddress-bind-error.js b/test/parallel/test-https-localaddress-bind-error.js
index 91c3062a6e..662d6f080a 100644
--- a/test/parallel/test-https-localaddress-bind-error.js
+++ b/test/parallel/test-https-localaddress-bind-error.js
@@ -1,21 +1,21 @@
'use strict';
-var common = require('../common');
-var fs = require('fs');
+const common = require('../common');
+const fs = require('fs');
if (!common.hasCrypto) {
common.skip('missing crypto');
return;
}
-var https = require('https');
+const https = require('https');
-var options = {
+const options = {
key: fs.readFileSync(common.fixturesDir + '/keys/agent1-key.pem'),
cert: fs.readFileSync(common.fixturesDir + '/keys/agent1-cert.pem')
};
-var invalidLocalAddress = '1.2.3.4';
+const invalidLocalAddress = '1.2.3.4';
-var server = https.createServer(options, function(req, res) {
+const server = https.createServer(options, function(req, res) {
console.log('Connect from: ' + req.connection.remoteAddress);
req.on('end', function() {