Merge pull request #1602 from Pryaxis/revert-1583-noip

Revert "Remove IP reset code in TShock init"
This commit is contained in:
Chris 2018-02-19 08:30:15 +10:30 committed by GitHub
commit f100f2d543
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -220,6 +220,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)