mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-22 12:03:04 +00:00
add master server url
This commit is contained in:
parent
0d6421dd5c
commit
a9a6bac1f8
2 changed files with 4 additions and 2 deletions
|
@ -45,5 +45,7 @@
|
|||
|
||||
"RCON_enabled": false,
|
||||
"RCON_password": "super_secret_password",
|
||||
"RCON_port": 25575
|
||||
"RCON_port": 25575,
|
||||
|
||||
"master_server_url": "http://saumasterserver.servegame.com:7080"
|
||||
}
|
|
@ -26,7 +26,7 @@ namespace SanAndreasUnity.Net
|
|||
{
|
||||
_client = new HttpClient();
|
||||
|
||||
_masterServerUrl = Config.Get<string>("masterserverurl");
|
||||
_masterServerUrl = Config.Get<string>("master_server_url");
|
||||
|
||||
if (string.IsNullOrWhiteSpace(_masterServerUrl))
|
||||
Debug.LogError("Url of master server not defined in config");
|
||||
|
|
Loading…
Reference in a new issue