1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 15:20:48 -05:00

misc fixes

This commit is contained in:
RaidMax
2022-10-25 15:39:49 -05:00
parent 5112d88ce2
commit fe0929d194
2 changed files with 15 additions and 5 deletions

View File

@ -1304,7 +1304,7 @@ namespace IW4MAdmin
this.MaxClients = maxplayers;
this.FSGame = game.Value;
this.Gametype = gametype;
this.IP = ip.Value == "localhost" ? ServerConfig.IPAddress : ip.Value ?? ServerConfig.IPAddress;
this.IP = ip.Value is "localhost" or "0.0.0.0" ? ServerConfig.IPAddress : ip.Value ?? ServerConfig.IPAddress;
this.GamePassword = gamePassword.Value;
UpdateMap(mapname);