mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-19 06:43:51 +02:00
Fix cache size and switch to using fileAnalysis for bundle sizes
This commit is contained in:
@@ -217,8 +217,7 @@ namespace VRCX
|
||||
{
|
||||
var fileHashBytes = await sha256.ComputeHashAsync(stream, _cancellationToken);
|
||||
var fileHashString = Convert.ToHexString(fileHashBytes);
|
||||
if (!string.IsNullOrEmpty(fileHashString) &&
|
||||
!hashString.Equals(fileHashString, StringComparison.OrdinalIgnoreCase))
|
||||
if (!hashString.Equals(fileHashString, StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
logger.Error($"Hash check failed file:{fileHashString} web:{hashString}");
|
||||
throw new Exception("Hash check failed");
|
||||
|
||||
Reference in New Issue
Block a user