diff --git a/Bloxstrap/Bloxstrap.csproj b/Bloxstrap/Bloxstrap.csproj index 0b7d2f35..8ce13881 100644 --- a/Bloxstrap/Bloxstrap.csproj +++ b/Bloxstrap/Bloxstrap.csproj @@ -7,8 +7,8 @@ true True Bloxstrap.ico - 2.5.2 - 2.5.2.0 + 2.5.3 + 2.5.3.0 app.manifest diff --git a/Bloxstrap/RobloxDeployment.cs b/Bloxstrap/RobloxDeployment.cs index cdeda888..5ce4b199 100644 --- a/Bloxstrap/RobloxDeployment.cs +++ b/Bloxstrap/RobloxDeployment.cs @@ -12,6 +12,7 @@ public static class RobloxDeployment { "https://setup.rbxcdn.com", "https://setup-ak.rbxcdn.com", + "https://roblox-setup.cachefly.net", "https://s3.amazonaws.com/setup.roblox.com" }; @@ -32,7 +33,11 @@ public static string BaseUrl try { - App.HttpClient.GetAsync($"{attemptedUrl}/version").Wait(); + var response = App.HttpClient.GetAsync($"{attemptedUrl}/version").Result; + + if (!response.IsSuccessStatusCode) + throw new HttpResponseException(response); + App.Logger.WriteLine(LOG_IDENT, "Connection successful!"); _baseUrl = attemptedUrl; break; @@ -46,7 +51,7 @@ public static string BaseUrl } if (string.IsNullOrEmpty(_baseUrl)) - throw new Exception("Unable to find an accessible Roblox deploy mirror!"); + throw new Exception("Could not find an accessible Roblox deployment mirror, likely due to a bad internet connection. Please launch again."); } return _baseUrl;