From d14d1b4787c7e39d6437ac016b6df4f07d4a4a79 Mon Sep 17 00:00:00 2001 From: lotodore Date: Thu, 20 Oct 2011 21:41:37 +0000 Subject: [PATCH] Do not check server password on official server (to prevent misconfiguration on client side). Only user auth is performed. --- src/net/common/serverlobbythread.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/net/common/serverlobbythread.cpp b/src/net/common/serverlobbythread.cpp index bcabeca1..c18f0bb0 100644 --- a/src/net/common/serverlobbythread.cpp +++ b/src/net/common/serverlobbythread.cpp @@ -959,7 +959,8 @@ ServerLobbyThread::HandleNetPacketInit(boost::shared_ptr session, c SessionError(session, ERR_NET_VERSION_NOT_SUPPORTED); return; } - // Check (clear text) server password. +#ifndef POKERTH_OFFICIAL_SERVER + // Check (clear text) server password (skip for official server, they are open to everyone). string serverPassword; if (initMessage.authServerPassword) { serverPassword = STL_STRING_FROM_OCTET_STRING(*initMessage.authServerPassword); @@ -968,6 +969,7 @@ ServerLobbyThread::HandleNetPacketInit(boost::shared_ptr session, c SessionError(session, ERR_NET_INVALID_PASSWORD); return; } +#endif string playerName; MD5Buf avatarMD5;