mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-21 10:01:27 -07:00
Merge branch 'version-2.5.2-cdn-bugfix'
This commit is contained in:
commit
3439223e0c
@ -7,8 +7,8 @@
|
|||||||
<UseWPF>true</UseWPF>
|
<UseWPF>true</UseWPF>
|
||||||
<UseWindowsForms>True</UseWindowsForms>
|
<UseWindowsForms>True</UseWindowsForms>
|
||||||
<ApplicationIcon>Bloxstrap.ico</ApplicationIcon>
|
<ApplicationIcon>Bloxstrap.ico</ApplicationIcon>
|
||||||
<Version>2.5.2</Version>
|
<Version>2.5.3</Version>
|
||||||
<FileVersion>2.5.2.0</FileVersion>
|
<FileVersion>2.5.3.0</FileVersion>
|
||||||
<ApplicationManifest>app.manifest</ApplicationManifest>
|
<ApplicationManifest>app.manifest</ApplicationManifest>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
{
|
{
|
||||||
"https://setup.rbxcdn.com",
|
"https://setup.rbxcdn.com",
|
||||||
"https://setup-ak.rbxcdn.com",
|
"https://setup-ak.rbxcdn.com",
|
||||||
|
"https://roblox-setup.cachefly.net",
|
||||||
"https://s3.amazonaws.com/setup.roblox.com"
|
"https://s3.amazonaws.com/setup.roblox.com"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -32,7 +33,11 @@
|
|||||||
|
|
||||||
try
|
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!");
|
App.Logger.WriteLine(LOG_IDENT, "Connection successful!");
|
||||||
_baseUrl = attemptedUrl;
|
_baseUrl = attemptedUrl;
|
||||||
break;
|
break;
|
||||||
@ -46,7 +51,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (string.IsNullOrEmpty(_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;
|
return _baseUrl;
|
||||||
|
Loading…
Reference in New Issue
Block a user