mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-11 23:58:08 -05:00
fix small bug with log paths
This commit is contained in:
@ -771,7 +771,7 @@ namespace IW4MAdmin
|
|||||||
LogPath = Regex.Replace($"{Path.DirectorySeparatorChar}{LogPath}", @"[A-Z]:/", "");
|
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"]}");
|
Logger.WriteError($"{LogPath} {loc["SERVER_ERROR_DNE"]}");
|
||||||
throw new ServerException($"{loc["SERVER_ERROR_LOG"]} {LogPath}");
|
throw new ServerException($"{loc["SERVER_ERROR_LOG"]} {LogPath}");
|
||||||
|
@ -12,4 +12,4 @@ if __name__ == '__main__':
|
|||||||
except ValueError:
|
except ValueError:
|
||||||
PORT = 5555
|
PORT = 5555
|
||||||
init()
|
init()
|
||||||
app.run(HOST, PORT, debug=False)
|
app.run('0.0.0.0', PORT, debug=False)
|
||||||
|
Reference in New Issue
Block a user