From 4605e24c5986e8ed9d858303158c3d3093f28ce4 Mon Sep 17 00:00:00 2001 From: Lucas Nicodemus Date: Sun, 18 Feb 2018 09:14:49 -0700 Subject: [PATCH] Revert "Remove IP reset code in TShock init" --- TShockAPI/TShock.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/TShockAPI/TShock.cs b/TShockAPI/TShock.cs index 44948484..d309bd07 100644 --- a/TShockAPI/TShock.cs +++ b/TShockAPI/TShock.cs @@ -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)