fix weird caps bug

This commit is contained in:
biglyderv 2025-04-01 18:43:15 -04:00
parent 4b529f1d5c
commit 747389c697
Signed by: biglyderv
GPG key ID: 0E2EB0B4CD7397B5

View file

@ -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 {