diff --git a/index.js b/index.js index 76cf3c7..ed30445 100644 --- a/index.js +++ b/index.js @@ -91,7 +91,7 @@ wss.on('connection', ws => { if (xhr.readyState === 4) { switch(xhr.status) { case 200: - let ran_key = get_key(8) + let ran_key = get_key(4) //write to redis redis_cli.hmset("surl;"+ran_key, "url", msg[1], "time", Date.now()) ws.send('surl;'+host+ran_key)