linux fixes
This commit is contained in:
@@ -52,6 +52,10 @@ namespace Game
|
||||
NetworkManager_Cleanup();
|
||||
|
||||
var networkSettings = GameSettings.Load<NetworkSettings>();
|
||||
networkSettings.Address = "any";
|
||||
networkSettings.Port = DefaultServerPort;
|
||||
GameSettings.LoadAsset<NetworkSettings>().SetInstance(networkSettings);
|
||||
|
||||
currentGameMode = new GameMode()
|
||||
{
|
||||
ServerAddress = "localhost",
|
||||
@@ -76,7 +80,7 @@ namespace Game
|
||||
failure = NetworkManager.StartServer();
|
||||
if (failure)
|
||||
{
|
||||
Console.PrintError("Server startup failed.");
|
||||
Console.PrintError($"Failed to start the server, unable to bind to address {networkSettings.Address}:{networkSettings.Port}");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user