Add some debug output so people know why REST is magically enabled.
This commit is contained in:
parent
c1f6204045
commit
ccee8f3ff4
2 changed files with 8 additions and 3 deletions
|
|
@ -48,5 +48,5 @@ using System.Runtime.InteropServices;
|
|||
// Build Number
|
||||
// MMdd of the build
|
||||
|
||||
[assembly: AssemblyVersion("3.6.0.0126")]
|
||||
[assembly: AssemblyFileVersion("3.6.0.0126")]
|
||||
[assembly: AssemblyVersion("3.6.0.0204")]
|
||||
[assembly: AssemblyFileVersion("3.6.0.0204")]
|
||||
|
|
|
|||
|
|
@ -371,14 +371,19 @@ namespace TShockAPI
|
|||
{
|
||||
string token = Convert.ToString(parms[++i]);
|
||||
RESTStartupTokens.Add(token, "null");
|
||||
Console.WriteLine("Startup parameter overrode REST token.");
|
||||
}
|
||||
if (parms[i].ToLower() == "-rest-enabled")
|
||||
{
|
||||
Config.RestApiEnabled = Convert.ToBoolean(parms[++i]);
|
||||
Config.RestApiEnabled = true;
|
||||
Console.WriteLine("Startup parameter overrode REST enable.");
|
||||
|
||||
}
|
||||
if (parms[i].ToLower() == "-rest-port")
|
||||
{
|
||||
Config.RestApiPort = Convert.ToInt32(parms[++i]);
|
||||
Console.WriteLine("Startup parameter overrode REST port.");
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue