From 280822cb8350213f374e59741506a607ce17dcaa Mon Sep 17 00:00:00 2001 From: Kitzunu <24550914+Kitzunu@users.noreply.github.com> Date: Tue, 29 Aug 2023 00:24:41 +0200 Subject: [PATCH] =?UTF-8?q?chore(Deps/Misc):=20Print=20an=20EOL=20Deprecat?= =?UTF-8?q?ion=20warning=20for=20MySQL=205.7=20and=20=E2=80=A6=20(#17101)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit chore(Deps/Misc): Print an EOL Deprecation warning for MySQL 5.7 and OpenSSL 1.1 --- src/server/apps/worldserver/Main.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/server/apps/worldserver/Main.cpp b/src/server/apps/worldserver/Main.cpp index 7ddcf9ceb..fa91207a7 100644 --- a/src/server/apps/worldserver/Main.cpp +++ b/src/server/apps/worldserver/Main.cpp @@ -391,6 +391,15 @@ int main(int argc, char** argv) sScriptMgr->OnStartup(); +// Be kind and warn people of EOL deprecation :) +#if !defined(MARIADB_VERSION_ID) + if (MySQL::GetLibraryVersion() < 80000) + LOG_WARN("server", "WARNING: You are using MySQL version 5.7 which is soon EOL!\nThis version will be deprecated. Consider upgrading to MySQL 8.0 or 8.1!"); +#endif +#if OPENSSL_VERSION_NUMBER < 0x30000000L + LOG_WARN("server", "WARNING: You are using OpenSSL version 1.1 which is soon EOL!\nThis version will be deprecated. Consider upgrading to OpenSSL 3.0 or 3.1!"); +#endif + // Launch CliRunnable thread std::shared_ptr cliThread; #if AC_PLATFORM == AC_PLATFORM_WINDOWS