diff --git a/sql/updates/auth/4.3.4/2018_08_16_00_auth.sql b/sql/updates/auth/4.3.4/2018_08_16_00_auth.sql new file mode 100644 index 0000000000..a62acbfe28 --- /dev/null +++ b/sql/updates/auth/4.3.4/2018_08_16_00_auth.sql @@ -0,0 +1,4 @@ +UPDATE `battlenet_components` SET `Build`= 0 WHERE `Program`= 'Tool'; +DELETE FROM `battlenet_components` WHERE `Program`= 'WoW' AND `Platform`= 'deDE'; +INSERT INTO `battlenet_components` (`Program`, `Platform`, `Build`) VALUES +('WoW', 'deDE', 15595); diff --git a/src/server/bnetserver/Server/Session.cpp b/src/server/bnetserver/Server/Session.cpp index 6f16d5a5e5..c8c092e127 100644 --- a/src/server/bnetserver/Server/Session.cpp +++ b/src/server/bnetserver/Server/Session.cpp @@ -175,7 +175,7 @@ void Battlenet::Session::HandleLogonRequest(Authentication::LogonRequest const& } else { - if (component.Program != "WoW" || AuthHelper::IsBuildSupportingBattlenet(component.Build)) + if (component.Program != "WoW" || !AuthHelper::IsBuildSupportingBattlenet(component.Build)) logonResponse->SetAuthResult(AUTH_REGION_BAD_VERSION); else logonResponse->SetAuthResult(AUTH_USE_GRUNT_LOGON); @@ -603,7 +603,6 @@ void Battlenet::Session::Start() PreparedStatement* stmt = LoginDatabase.GetPreparedStatement(LOGIN_SEL_IP_INFO); stmt->setString(0, ip_address); - stmt->setUInt32(1, inet_addr(ip_address.c_str())); _queryProcessor.AddQuery(LoginDatabase.AsyncQuery(stmt).WithPreparedCallback(std::bind(&Battlenet::Session::CheckIpCallback, this, std::placeholders::_1))); }