8 is too much

master
adb-sh 4 years ago
parent 1dd97e6ebe
commit 8d1ff20376

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

Loading…
Cancel
Save