Added config options for RestApi

-IP now changes RestApi listening ip.
This commit is contained in:
high 2011-09-05 14:33:37 -04:00
parent 4b694c0c31
commit f949738db9
3 changed files with 14 additions and 3 deletions

View file

@ -193,6 +193,12 @@ namespace TShockAPI
[Description("This is used when the API endpoint /status is queried.")]
public string ServerNickname = "TShock Server";
[Description("Enable/Disable the rest api.")]
public bool RestApiEnabled = true;
[Description("This is the port which the rest api will listen on.")]
public int RestApiPort = 8080;
public static ConfigFile Read(string path)
{
if (!File.Exists(path))