GUIDs are way longer now, since they seem to collide at some points

This commit is contained in:
Kasper Rynning-Tønnesen
2015-06-27 18:31:49 +02:00
parent d3e0e998f2
commit 4ce8c97b20

View File

@@ -53,7 +53,7 @@ db.on('error',function(err) {
io.on('connection', function(socket){
socket.emit("get_list");
var guid = hash_pass(socket.handshake.headers["user-agent"] + socket.handshake.address + socket.handshake.headers["accept-language"]).substring(0,8);
var guid = hash_pass(socket.handshake.headers["user-agent"] + socket.handshake.address + socket.handshake.headers["accept-language"]);
socket.on('ping', function() {
socket.emit("ok");