diff --git a/client/Assets/Vanguard/Runtime/UI/LoginView.cs b/client/Assets/Vanguard/Runtime/UI/LoginView.cs index aa46e0b..af0b7a3 100644 --- a/client/Assets/Vanguard/Runtime/UI/LoginView.cs +++ b/client/Assets/Vanguard/Runtime/UI/LoginView.cs @@ -191,7 +191,19 @@ namespace Vanguard.UI catch (Exception exception) { Debug.LogException(exception); - SetStatus("Не удалось связаться с сервером. Проверьте адрес.", new Color(1f, 0.55f, 0.45f)); + var detail = exception.Message ?? string.Empty; + if (detail.IndexOf("Insecure connection", StringComparison.OrdinalIgnoreCase) >= 0) + { + SetStatus( + "Unity блокирует HTTP. Player Settings → Allow downloads over HTTP = Always, затем перезапусти Unity.", + new Color(1f, 0.55f, 0.45f)); + } + else + { + SetStatus( + "Не удалось связаться: " + detail, + new Color(1f, 0.55f, 0.45f)); + } } finally {