DepotDownloader: Removed Steam2 auth server lookup and caching.

pull/8/head
Nicholas Hastings 13 years ago
parent a8e714ea12
commit 9fb844fdae

@ -855,14 +855,6 @@ namespace DepotDownloader
return null;
}
static IPEndPoint GetAuthServer()
{
if ( ServerCache.AuthServers.Count > 0 )
return ServerCache.AuthServers[ 0 ];
return null;
}
static string EncodeHexString( byte[] input )
{
return input.Aggregate( new StringBuilder(),

@ -9,13 +9,11 @@ namespace DepotDownloader
{
public static ServerList ConfigServers { get; private set; }
public static ServerList CSDSServers { get; private set; }
public static ServerList AuthServers { get; private set; }
static ServerCache()
{
ConfigServers = new ServerList();
CSDSServers = new ServerList();
AuthServers = new ServerList();
}
@ -32,27 +30,6 @@ namespace DepotDownloader
Console.WriteLine( " Done!" );
}
public static void BuildAuthServers( string username )
{
foreach ( IPEndPoint gdServer in GeneralDSClient.GDServers )
{
try
{
GeneralDSClient gdsClient = new GeneralDSClient();
gdsClient.Connect( gdServer );
IPEndPoint[] servers = gdsClient.GetAuthServerList( username );
AuthServers.AddRange( servers );
gdsClient.Disconnect();
}
catch
{
Console.WriteLine( "Warning: Unable to connect to GDS {0} to get list of auth servers.", gdServer );
}
}
}
private static void BuildServer( IPEndPoint gdServer, ServerList list, ESteam2ServerType type )
{
try

Loading…
Cancel
Save