fighting CDN Round 2
This commit is contained in:
@@ -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)
|
||||||
{
|
{
|
||||||
|
await HandleAssetManifestRequest(connection, ct);
|
||||||
|
}
|
||||||
if (!_sessions.TryGet(connection.Id, out var accountId, out _))
|
if (!_sessions.TryGet(connection.Id, out var accountId, out _))
|
||||||
{
|
{
|
||||||
await SendErrorAsync(connection, "auth_required", ct);
|
await SendErrorAsync(connection, "auth_required", ct);
|
||||||
return;
|
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);
|
||||||
|
|||||||
Reference in New Issue
Block a user