mirror of
https://github.com/PretendoNetwork/BOSS.git
synced 2026-03-21 17:34:19 -05:00
Merge pull request #38 from PretendoNetwork/hotfix/hash-valid-filenames
fix: Use hex as hash key, as base64 is not a valid filename
This commit is contained in:
commit
364615f3ce
|
|
@ -181,7 +181,7 @@ spr.post('/relay/0', async (request, response) => {
|
|||
|
||||
// * Upload slot data
|
||||
if (sprSlot.size > 0 && sprSlot.sendMode !== SendMode.RecvOnly) {
|
||||
const dataHash = crypto.createHash('sha256').update(sprSlot.data).digest('base64');
|
||||
const dataHash = crypto.createHash('sha256').update(sprSlot.data).digest('hex');
|
||||
let slotData = await getDuplicateCECData(request.pid, sprSlot.gameID);
|
||||
|
||||
if (!slotData || slotData.data_hash !== dataHash) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user