You've already forked Nitro_Render_V3
mirror of
https://github.com/duckietm/Nitro_Render_V3.git
synced 2026-06-19 06:56:19 +00:00
fix(handshake): send UniqueID (machine fingerprint) before the SSO ticket
Arcturus' Habbo.connect() runs when the SSOTicket packet is handled and needs the machineId, which is set by the UniqueID packet. Sending the SSO ticket first made such servers reject the login (WS closed with "Bye") because the fingerprint hadn't arrived yet. Send UniqueID before the SSO ticket so the machineId is available when the server processes the login.
This commit is contained in:
@@ -45,8 +45,10 @@ export class CommunicationManager implements ICommunicationManager
|
||||
const machineId = await this._machineIdPromise;
|
||||
|
||||
this._connection.send(new ClientHelloMessageComposer(null, null, null, null));
|
||||
this._connection.send(new SSOTicketMessageComposer(GetConfiguration().getValue('sso.ticket', null), GetTickerTime()));
|
||||
// Send the machine fingerprint (UniqueID) BEFORE the SSO ticket so the server
|
||||
// has the machineId available when it processes the login in Habbo.connect().
|
||||
this._connection.send(new UniqueIDMessageComposer(machineId, '', ''));
|
||||
this._connection.send(new SSOTicketMessageComposer(GetConfiguration().getValue('sso.ticket', null), GetTickerTime()));
|
||||
}
|
||||
|
||||
constructor()
|
||||
|
||||
Reference in New Issue
Block a user