Skip to content

Commit

Permalink
wrong code was in test for checking localhost
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewfl committed Nov 20, 2010
1 parent 6ec2236 commit 06c4101
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test.js
Expand Up @@ -6,7 +6,7 @@ var sandbox = require('./sandbox');
var boxes = {};

var server = http.createServer(function (req, res) {
if(req.connection.remoteAddress != "127.0.0.1") res.end();
if(req.connection.remoteAddress != "127.0.0.1") {res.writeHead(400, {"Connection":"close"}); return res.end();}
console.log("connect", req.headers.host);
//res.writeHead(200, {"Content-type": "text/plain"});
if(req.headers.host == config.testHost) {
Expand Down

0 comments on commit 06c4101

Please sign in to comment.