diff --git a/DepotDownloader/CDNClientPool.cs b/DepotDownloader/CDNClientPool.cs index c468cdd0..42056f2f 100644 --- a/DepotDownloader/CDNClientPool.cs +++ b/DepotDownloader/CDNClientPool.cs @@ -19,9 +19,7 @@ namespace DepotDownloader private readonly Steam3Session steamSession; private readonly uint appId; public CDNClient CDNClient { get; } -#if STEAMKIT_UNRELEASED public CDNClient.Server ProxyServer { get; private set; } -#endif private readonly ConcurrentStack activeConnectionPool; private readonly BlockingCollection availableServerEndpoints; @@ -101,19 +99,13 @@ namespace DepotDownloader return; } -#if STEAMKIT_UNRELEASED ProxyServer = servers.Where(x => x.UseAsProxy).FirstOrDefault(); -#endif var weightedCdnServers = servers .Where(server => { -#if STEAMKIT_UNRELEASED var isEligibleForApp = server.AllowedAppIds == null || server.AllowedAppIds.Contains(appId); return isEligibleForApp && (server.Type == "SteamCache" || server.Type == "CDN"); -#else - return server.Type == "SteamCache" || server.Type == "CDN"; -#endif }) .Select(server => { diff --git a/DepotDownloader/ContentDownloader.cs b/DepotDownloader/ContentDownloader.cs index 209fa9bb..b87fa3b8 100644 --- a/DepotDownloader/ContentDownloader.cs +++ b/DepotDownloader/ContentDownloader.cs @@ -827,13 +827,8 @@ namespace DepotDownloader connection = cdnPool.GetConnection(cts.Token); var cdnToken = await cdnPool.AuthenticateConnection(appId, depot.id, connection); -#if STEAMKIT_UNRELEASED depotManifest = await cdnPool.CDNClient.DownloadManifestAsync(depot.id, depot.manifestId, connection, cdnToken, depot.depotKey, proxyServer: cdnPool.ProxyServer).ConfigureAwait(false); -#else - depotManifest = await cdnPool.CDNClient.DownloadManifestAsync(depot.id, depot.manifestId, - connection, cdnToken, depot.depotKey).ConfigureAwait(false); -#endif cdnPool.ReturnConnection(connection); } @@ -1200,13 +1195,8 @@ namespace DepotDownloader connection = cdnPool.GetConnection(cts.Token); var cdnToken = await cdnPool.AuthenticateConnection(appId, depot.id, connection); -#if STEAMKIT_UNRELEASED chunkData = await cdnPool.CDNClient.DownloadDepotChunkAsync(depot.id, data, connection, cdnToken, depot.depotKey, proxyServer: cdnPool.ProxyServer).ConfigureAwait(false); -#else - chunkData = await cdnPool.CDNClient.DownloadDepotChunkAsync(depot.id, data, - connection, cdnToken, depot.depotKey).ConfigureAwait(false); -#endif cdnPool.ReturnConnection(connection); } diff --git a/DepotDownloader/DepotDownloader.csproj b/DepotDownloader/DepotDownloader.csproj index 56756550..e56e462f 100644 --- a/DepotDownloader/DepotDownloader.csproj +++ b/DepotDownloader/DepotDownloader.csproj @@ -6,6 +6,6 @@ - + \ No newline at end of file