remove colon

This commit is contained in:
biglyderv 2025-04-01 18:26:33 -04:00
parent b84fae32a1
commit 663a58e39b
Signed by: biglyderv
GPG key ID: 0E2EB0B4CD7397B5

View file

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