fix small bug with log paths

This commit is contained in:
RaidMax 2019-02-09 21:24:54 -06:00
parent dea5b3f954
commit 9e74c42246
2 changed files with 2 additions and 2 deletions

View File

@ -771,7 +771,7 @@ namespace IW4MAdmin
LogPath = Regex.Replace($"{Path.DirectorySeparatorChar}{LogPath}", @"[A-Z]:/", "");
}
if (!File.Exists(LogPath))
if (!File.Exists(LogPath) && ServerConfig.GameLogServerUrl == null)
{
Logger.WriteError($"{LogPath} {loc["SERVER_ERROR_DNE"]}");
throw new ServerException($"{loc["SERVER_ERROR_LOG"]} {LogPath}");

View File

@ -12,4 +12,4 @@ if __name__ == '__main__':
except ValueError:
PORT = 5555
init()
app.run(HOST, PORT, debug=False)
app.run('0.0.0.0', PORT, debug=False)