From 91b0ed71a5452a64e6cca8281c45627aa2bcd2cb Mon Sep 17 00:00:00 2001 From: Lucas Nicodemus Date: Fri, 22 Dec 2017 09:40:25 -0700 Subject: [PATCH] Remove connections per IP code. Closes #1577 --- TShockAPI/TShock.cs | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/TShockAPI/TShock.cs b/TShockAPI/TShock.cs index 44c6b9f1..4143c656 100644 --- a/TShockAPI/TShock.cs +++ b/TShockAPI/TShock.cs @@ -772,20 +772,6 @@ namespace TShockAPI .AddFlag("--no-restart", () => NoRestart = true); CliParser.ParseFromSource(parms); - - /*"-connperip": Todo - Requires an OTAPI modification - { - int limit; - if (int.TryParse(parms[++i], out limit)) - { - //Netplay.MaxConnections = limit; - //ServerApi.LogWriter.PluginWriteLine(this, string.Format( - // "Connections per IP have been limited to {0} connections.", limit), TraceLevel.Verbose); - ServerApi.LogWriter.PluginWriteLine(this, "\"-connperip\" is not supported in this version of TShock.", TraceLevel.Verbose); - } - else - ServerApi.LogWriter.PluginWriteLine(this, "Invalid value given for command line argument \"-connperip\".", TraceLevel.Warning); - }*/ } /// HandleCommandLinePostConfigLoad - Handles additional command line options after the config file is read.