mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-11-19 10:15:27 +00:00
fix: adapt the session key packets and the packet decoder to the 33 character key
SetSessionKey, SessionKeyResponse and NewSessionAlert carry the key as a 33 character string where the number was, which the auth, master and world servers now pass. The packet decoder blanks that string in a kept packet, and the packet tests write the string. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
@@ -92,7 +92,7 @@ namespace MasterPackets {
|
||||
|
||||
// Auth -> master: an account logged in with this session key
|
||||
struct SetSessionKey : public LUBitStream {
|
||||
uint32_t sessionKey{};
|
||||
LUString sessionKey{}; // 32 hex characters
|
||||
LUString username{};
|
||||
|
||||
SetSessionKey() : LUBitStream(ServiceType::MASTER, MessageType::Master::SET_SESSION_KEY) {}
|
||||
@@ -102,7 +102,7 @@ namespace MasterPackets {
|
||||
|
||||
// Master -> world: answer to RequestSessionKey
|
||||
struct SessionKeyResponse : public LUBitStream {
|
||||
uint32_t sessionKey{};
|
||||
LUString sessionKey{};
|
||||
LUWString username{};
|
||||
|
||||
SessionKeyResponse() : LUBitStream(ServiceType::MASTER, MessageType::Master::SESSION_KEY_RESPONSE) {}
|
||||
@@ -112,7 +112,7 @@ namespace MasterPackets {
|
||||
|
||||
// Master -> every server: the account logged in again with a new session key
|
||||
struct NewSessionAlert : public LUBitStream {
|
||||
uint32_t sessionKey{};
|
||||
LUString sessionKey{};
|
||||
LUString username{};
|
||||
|
||||
NewSessionAlert() : LUBitStream(ServiceType::MASTER, MessageType::Master::NEW_SESSION_ALERT) {}
|
||||
|
||||
Reference in New Issue
Block a user