Fix incorrect hash length check

This commit is contained in:
ppeb 2025-03-14 20:00:36 -05:00
parent 54b8d7ab82
commit 5d7ec0edbc
No known key found for this signature in database
GPG Key ID: CC147AD1B3D318D0

View File

@ -224,7 +224,7 @@ func (g *GameSpySession) login(command common.GameSpyCommand) {
return
}
if len(packHashStr) != 20 {
if len(packHashStr) != 40 {
logging.Error(g.ModuleName, "Invalid pack_hash: Mismatched len,", aurora.Cyan(len(packHashStr)))
g.replyError(ErrLoginBadHash)
return