remove colon
This commit is contained in:
parent
b84fae32a1
commit
663a58e39b
1 changed files with 1 additions and 1 deletions
2
index.js
2
index.js
|
@ -13,7 +13,7 @@ app.set('trust proxy', true)
|
|||
app.use(express.static('static'));
|
||||
|
||||
app.post('/', async function (req, res) {
|
||||
let id = 'web:' + createHash('sha256').update(req.ip).digest('base64');
|
||||
let id = 'web' + createHash('sha256').update(req.ip).digest('base64');
|
||||
id = id.slice(0,16);
|
||||
|
||||
if (!sessions[id]) {
|
||||
|
|
Loading…
Reference in a new issue