Showing with 3 additions and 0 deletions.
  1. +1 −0 test/simple/test-http-localaddress-bind-error.js
  2. +2 −0 test/simple/test-http-localaddress.js
@@ -33,6 +33,7 @@ var server = http.createServer(function(req, res) {
res.writeHead(200, { 'Content-Type': 'text/plain' });
res.end('You are from: ' + req.connection.remoteAddress);
});
req.resume();
});

server.listen(common.PORT, "127.0.0.1", function() {
@@ -36,6 +36,7 @@ var server = http.createServer(function (req, res) {
res.writeHead(200, { 'Content-Type': 'text/plain' });
res.end('You are from: ' + req.connection.remoteAddress);
});
req.resume();
});

server.listen(common.PORT, "127.0.0.1", function() {
@@ -50,6 +51,7 @@ server.listen(common.PORT, "127.0.0.1", function() {
server.close();
process.exit();
});
res.resume();
});
req.end();
});