fix weird caps bug
This commit is contained in:
parent
4b529f1d5c
commit
747389c697
1 changed files with 2 additions and 2 deletions
4
index.js
4
index.js
|
@ -13,8 +13,8 @@ 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');
|
||||
id = id.slice(0,16);
|
||||
let id = 'web:' + createHash('sha256').update(req.ip).digest('hex');
|
||||
id = id.slice(0,24);
|
||||
|
||||
if (!sessions[id]) {
|
||||
try {
|
||||
|
|
Loading…
Reference in a new issue