Fixes rest api error on startup without -ip arg
This commit is contained in:
parent
e4313b6433
commit
272cc31b28
1 changed files with 5 additions and 1 deletions
|
|
@ -212,6 +212,10 @@ namespace TShockAPI
|
|||
|
||||
Main.ServerSideCharacter = ServerSideCharacterConfig.Enabled;
|
||||
|
||||
//TSAPI previously would do this automatically, but the vanilla server wont
|
||||
if (Netplay.ServerIP == null)
|
||||
Netplay.ServerIP = IPAddress.Any;
|
||||
|
||||
DateTime now = DateTime.Now;
|
||||
// Log path was not already set by the command line parameter?
|
||||
if (LogPath == LogPathDefault)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue