fighting CDN Round 2

This commit is contained in:
dingo
2025-12-19 11:37:21 -05:00
parent e69f35c1f5
commit 2913d057e9
+7 -5
View File
@@ -132,12 +132,14 @@ public sealed class DungeonHandler : IClientMessageHandler
// All dungeon operations require authentication // All dungeon operations require authentication
if (opCode != DungeonOpCodes.ASSET_MANIFEST_REQUEST) if (opCode != DungeonOpCodes.ASSET_MANIFEST_REQUEST)
{ {
if (!_sessions.TryGet(connection.Id, out var accountId, out _)) await HandleAssetManifestRequest(connection, ct);
{
await SendErrorAsync(connection, "auth_required", ct);
return;
}
} }
if (!_sessions.TryGet(connection.Id, out var accountId, out _))
{
await SendErrorAsync(connection, "auth_required", ct);
return;
}
// Get or create player session // Get or create player session
var session = await GetOrCreateSessionAsync(connection, accountId, ct); var session = await GetOrCreateSessionAsync(connection, accountId, ct);