From 8e14bc77651240142bc345b90a9d2f2c097cfa50 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 7 Dec 2017 18:36:03 +0300 Subject: Update 0x0ae3 packet for new zero clients. Old packet look like worked too, because this is fake packet, but better send it in correct way. --- src/login/login.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/login/login.c b/src/login/login.c index 1c1d69250..a78276051 100644 --- a/src/login/login.c +++ b/src/login/login.c @@ -1365,7 +1365,15 @@ bool login_client_login_otp(int fd, struct login_session_data *sd) { // send ok response with fake token #ifdef PACKETVER_ZERO -#if PACKETVER >= 20171123 +#if PACKETVER >= 20171127 + WFIFOHEAD(fd, 33); + WFIFOW(fd, 0) = 0x0ae3; + WFIFOW(fd, 2) = 33; // len + WFIFOL(fd, 4) = 0; // normal login + safestrncpy(WFIFOP(fd, 8), "S1000", 6); + safestrncpy(WFIFOP(fd, 28), "token", 6); + WFIFOSET(fd, 33); +#elif PACKETVER >= 20171123 WFIFOHEAD(fd, 19); WFIFOW(fd, 0) = 0x0ae3; WFIFOW(fd, 2) = 19; // len -- cgit v1.2.3-70-g09d2