From f814ae795d59ca7ac07cab4153d0211ab5b56a5e Mon Sep 17 00:00:00 2001 From: Koncord Date: Wed, 13 Sep 2017 19:11:50 +0800 Subject: [PATCH] [Master] Fix return from isServerValid() Temporary accept all servers in OnServerAnnnounce --- apps/master/MasterServer.cpp | 2 +- files/tes3mp/master/master.lua | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/master/MasterServer.cpp b/apps/master/MasterServer.cpp index 317f4174a..0759b578c 100644 --- a/apps/master/MasterServer.cpp +++ b/apps/master/MasterServer.cpp @@ -180,7 +180,7 @@ void MasterServer::Thread() auto addr = packet->systemAddress.ToString(false); if (find(banned.begin(), banned.end(), addr) != banned.end()) // check if address is banned - return true; + return false; luaStuff([&ret, &packet, &sserver, &addr](sol::state &state) { sol::protected_function func = state["OnServerAnnounce"]; diff --git a/files/tes3mp/master/master.lua b/files/tes3mp/master/master.lua index c801f3008..192d55b64 100644 --- a/files/tes3mp/master/master.lua +++ b/files/tes3mp/master/master.lua @@ -186,6 +186,7 @@ function OnServerAnnounce(address, sserver) -- callback print(sserver.name) print(sserver.gamemode) print(sserver.version) + return true end function OnExit() -- callback