fix length isuse
This commit is contained in:
parent
cde8ef476c
commit
0f0de78e84
1 changed files with 1 additions and 0 deletions
1
index.js
1
index.js
|
@ -14,6 +14,7 @@ app.use(express.static('static'));
|
|||
|
||||
app.post('/', async function (req, res) {
|
||||
let id = 'web:' + createHash('sha256').update(req.ip).digest('base64');
|
||||
id.length = 16;
|
||||
|
||||
if (!sessions[id]) {
|
||||
try {
|
||||
|
|
Loading…
Reference in a new issue