mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
GUIDs are way longer now, since they seem to collide at some points
This commit is contained in:
@@ -53,7 +53,7 @@ db.on('error',function(err) {
|
|||||||
io.on('connection', function(socket){
|
io.on('connection', function(socket){
|
||||||
socket.emit("get_list");
|
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.on('ping', function() {
|
||||||
socket.emit("ok");
|
socket.emit("ok");
|
||||||
|
|||||||
Reference in New Issue
Block a user