mirror of
https://github.com/SteamRE/DepotDownloader.git
synced 2026-10-19 15:51:50 +00:00
Don't retrieve AppTickets as they aren't needed anymore
This commit is contained in:
1 parent
6105a99e72
commit
184ea54020
3 files changed
+16
-4
No files matched your search
@@ -129,7 +129,7 @@ namespace DepotDownloader
|
||||
{
|
||||
steamSession.RequestCDNAuthToken(appId, depotId, server.Host);
|
||||
|
||||
var cdnKey = string.Format("{0:D}:{1}", depotId, server.Host);
|
||||
var cdnKey = string.Format("{0:D}:{1}", depotId, steamSession.ResolveCDNTopLevelHost(server.Host));
|
||||
SteamApps.CDNAuthTokenCallback authTokenCallback;
|
||||
|
||||
if (steamSession.CDNAuthTokens.TryGetValue(cdnKey, out authTokenCallback))
|
||||
@@ -175,7 +175,7 @@ namespace DepotDownloader
|
||||
{
|
||||
steamSession.RequestCDNAuthToken(appId, depotId, server.Host);
|
||||
|
||||
var cdnKey = string.Format("{0:D}:{1}", depotId, server.Host);
|
||||
var cdnKey = string.Format("{0:D}:{1}", depotId, steamSession.ResolveCDNTopLevelHost(server.Host));
|
||||
SteamApps.CDNAuthTokenCallback authTokenCallback;
|
||||
|
||||
if (steamSession.CDNAuthTokens.TryGetValue(cdnKey, out authTokenCallback))
|
||||
|
||||
@@ -481,8 +481,8 @@ namespace DepotDownloader
|
||||
return null;
|
||||
}
|
||||
|
||||
if ( steam3 != null )
|
||||
steam3.RequestAppTicket( ( uint )depotId );
|
||||
// Skip requesting an app ticket
|
||||
steam3.AppTickets[ depotId ] = null;
|
||||
|
||||
ulong manifestID = GetSteam3DepotManifest( depotId, appId, branch );
|
||||
if ( manifestID == INVALID_MANIFEST_ID && branch != "public" )
|
||||
|
||||
@@ -313,8 +313,20 @@ namespace DepotDownloader
|
||||
}, () => { return completed; } );
|
||||
}
|
||||
|
||||
public string ResolveCDNTopLevelHost(string host)
|
||||
{
|
||||
// SteamPipe CDN shares tokens with all hosts
|
||||
if (host.EndsWith( ".steampipe.steamcontent.com" ) )
|
||||
{
|
||||
return "steampipe.steamcontent.com";
|
||||
}
|
||||
|
||||
return host;
|
||||
}
|
||||
|
||||
public void RequestCDNAuthToken( uint appid, uint depotid, string host )
|
||||
{
|
||||
host = ResolveCDNTopLevelHost( host );
|
||||
var cdnKey = string.Format( "{0:D}:{1}", depotid, host );
|
||||
|
||||
if ( CDNAuthTokens.ContainsKey( cdnKey ) || bAborted )
|
||||
|
||||
Reference in new issue
Block a user