add master server url

This commit is contained in:
in0finite 2021-01-27 01:19:28 +01:00
parent 0d6421dd5c
commit a9a6bac1f8
2 changed files with 4 additions and 2 deletions

View file

@ -45,5 +45,7 @@
"RCON_enabled": false, "RCON_enabled": false,
"RCON_password": "super_secret_password", "RCON_password": "super_secret_password",
"RCON_port": 25575 "RCON_port": 25575,
"master_server_url": "http://saumasterserver.servegame.com:7080"
} }

View file

@ -26,7 +26,7 @@ namespace SanAndreasUnity.Net
{ {
_client = new HttpClient(); _client = new HttpClient();
_masterServerUrl = Config.Get<string>("masterserverurl"); _masterServerUrl = Config.Get<string>("master_server_url");
if (string.IsNullOrWhiteSpace(_masterServerUrl)) if (string.IsNullOrWhiteSpace(_masterServerUrl))
Debug.LogError("Url of master server not defined in config"); Debug.LogError("Url of master server not defined in config");