From b4d6f900122ae512941ad42aa095e3e8080a19b5 Mon Sep 17 00:00:00 2001 From: Lion Kortlepel Date: Thu, 28 Dec 2023 17:20:31 +0100 Subject: [PATCH] remove custom ip functionality because it never worked --- src/TServer.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/TServer.cpp b/src/TServer.cpp index 9a64189..058ec17 100644 --- a/src/TServer.cpp +++ b/src/TServer.cpp @@ -80,17 +80,6 @@ TEST_CASE("GetPidVid") { TServer::TServer(const std::vector& Arguments) { beammp_info("BeamMP Server v" + Application::ServerVersionString()); Application::SetSubsystemStatus("Server", Application::Status::Starting); - if (Arguments.size() > 1) { - Application::Settings.CustomIP = Arguments[0]; - size_t n = std::count(Application::Settings.CustomIP.begin(), Application::Settings.CustomIP.end(), '.'); - auto p = Application::Settings.CustomIP.find_first_not_of(".0123456789"); - if (p != std::string::npos || n != 3 || Application::Settings.CustomIP.substr(0, 3) == "127") { - Application::Settings.CustomIP.clear(); - beammp_warn("IP Specified is invalid! Ignoring"); - } else { - beammp_info("server started with custom IP"); - } - } Application::SetSubsystemStatus("Server", Application::Status::Good); }