Fixes rest api error on startup without -ip arg

This commit is contained in:
Luke 2016-12-10 02:30:15 +10:00
parent e4313b6433
commit 272cc31b28

View file

@ -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)