Added config options for RestApi
-IP now changes RestApi listening ip.
This commit is contained in:
parent
4b694c0c31
commit
f949738db9
3 changed files with 14 additions and 3 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue