Added -rest-enabled and -rest-port command line parameters
This commit is contained in:
parent
70e8bb9759
commit
2d12cbe398
1 changed files with 8 additions and 0 deletions
|
|
@ -376,6 +376,14 @@ namespace TShockAPI
|
||||||
{
|
{
|
||||||
Config.RestApiEnabled = Convert.ToBoolean(parms[++i]);
|
Config.RestApiEnabled = Convert.ToBoolean(parms[++i]);
|
||||||
}
|
}
|
||||||
|
if (parms[i].ToLower() == "-rest-enabled")
|
||||||
|
{
|
||||||
|
Config.RestApiEnabled = Convert.ToBoolean(parms[++i]);
|
||||||
|
}
|
||||||
|
if (parms[i].ToLower() == "-rest-port")
|
||||||
|
{
|
||||||
|
Config.RestApiPort = Convert.ToInt32(parms[++i]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue