Permalink
Browse files

reverse IPv6 and IPv4 instances

  • Loading branch information...
1 parent fa0dc9b commit 6824209d88b10175a6d1a01e8c2a16e2baf69c9c @jadonk committed Dec 28, 2011
Showing with 5 additions and 5 deletions.
  1. +5 −5 bonescript/index.js
View
@@ -344,18 +344,18 @@ exports.Server = function(port, subdir, onconnect) {
}
}
};
- this.server = http.createServer();
- this.server.addListener('request', handler);
this.server6 = http.createServer();
this.server6.addListener('request', handler);
+ this.server = http.createServer();
+ this.server.addListener('request', handler);
if(socket.exists && (typeof onconnect == 'function')) {
- var io = socket.listen(this.server);
- io.sockets.on('connection', onconnect);
var io6 = socket.listen(this.server6);
io6.sockets.on('connection', onconnect);
+ var io = socket.listen(this.server);
+ io.sockets.on('connection', onconnect);
}
this.begin = function() {
- this.server.listen(port);
this.server6.listen(port, '::0');
+ this.server.listen(port);
};
};

0 comments on commit 6824209

Please sign in to comment.