mirror of
https://github.com/SteamRE/DepotDownloader.git
synced 2026-10-19 15:51:50 +00:00
Filter CDN server list to the two types of content servers we support: SteamCache and CDN.
This commit is contained in:
1 parent
9979cda684
commit
2ca1f3e8e6
1 file changed
+2
-2
@@ -91,13 +91,13 @@ namespace DepotDownloader
|
||||
{
|
||||
var servers = await FetchBootstrapServerListAsync().ConfigureAwait(false);
|
||||
|
||||
if (servers == null)
|
||||
if (servers == null || servers.Count == 0)
|
||||
{
|
||||
ExhaustedToken?.Cancel();
|
||||
return;
|
||||
}
|
||||
|
||||
var weightedCdnServers = servers.Select(x =>
|
||||
var weightedCdnServers = servers.Where(x => x.Type == "SteamCache" || x.Type == "CDN").Select(x =>
|
||||
{
|
||||
AccountSettingsStore.Instance.ContentServerPenalty.TryGetValue(x.Host, out var penalty);
|
||||
|
||||
|
||||
Reference in new issue
Block a user