Skip to content

Commit

Permalink
Remove the CDN authentication call
Browse files Browse the repository at this point in the history
  • Loading branch information
azuisleet committed Oct 6, 2021
1 parent 8b4dcc2 commit 2c038fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
10 changes: 2 additions & 8 deletions DepotDownloader/ContentDownloader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -837,12 +837,9 @@ private static async Task<DepotFilesData> ProcessDepotManifestAndFiles(Cancellat
{
connection = cdnPool.GetConnection(cts.Token);

DebugLog.WriteLine("ContentDownloader", "Authenticating connection to {0}", connection);
var cdnToken = await cdnPool.AuthenticateConnection(appId, depot.id, connection);

DebugLog.WriteLine("ContentDownloader", "Downloading manifest {0} from {1} with {2}", depot.manifestId, connection, cdnPool.ProxyServer != null ? cdnPool.ProxyServer : "no proxy");
depotManifest = await cdnPool.CDNClient.DownloadManifestAsync(depot.id, depot.manifestId,
connection, cdnToken, depot.depotKey, proxyServer: cdnPool.ProxyServer).ConfigureAwait(false);
connection, null, depot.depotKey, proxyServer: cdnPool.ProxyServer).ConfigureAwait(false);

cdnPool.ReturnConnection(connection);
}
Expand Down Expand Up @@ -1238,12 +1235,9 @@ private static async Task DownloadSteam3AsyncDepotFileChunk(
{
connection = cdnPool.GetConnection(cts.Token);

DebugLog.WriteLine("ContentDownloader", "Authenticating connection to {0}", connection);
var cdnToken = await cdnPool.AuthenticateConnection(appId, depot.id, connection);

DebugLog.WriteLine("ContentDownloader", "Downloading chunk {0} from {1} with {2}", chunkID, connection, cdnPool.ProxyServer != null ? cdnPool.ProxyServer : "no proxy");
chunkData = await cdnPool.CDNClient.DownloadDepotChunkAsync(depot.id, data,
connection, cdnToken, depot.depotKey, proxyServer: cdnPool.ProxyServer).ConfigureAwait(false);
connection, null, depot.depotKey, proxyServer: cdnPool.ProxyServer).ConfigureAwait(false);

cdnPool.ReturnConnection(connection);
}
Expand Down
2 changes: 1 addition & 1 deletion DepotDownloader/DepotDownloader.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<TargetFramework>net5.0</TargetFramework>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>

<Version>2.4.3</Version>
<Version>2.4.5</Version>
<Description>Steam Downloading Utility</Description>
<Authors>SteamRE Team</Authors>
<Copyright>Copyright © SteamRE Team 2021</Copyright>
Expand Down

0 comments on commit 2c038fd

Please sign in to comment.