mirror of
https://github.com/JDM170/SteamAchievementManager
synced 2025-12-10 05:37:18 +07:00
Use Akamai URLs for media to avoid having to disable SSL certificate validation.
This commit is contained in:
@@ -174,7 +174,7 @@ namespace SAM.Game
|
||||
this._IconDownloader.DownloadDataAsync(
|
||||
new Uri(string.Format(
|
||||
CultureInfo.InvariantCulture,
|
||||
"http://media.steamcommunity.com/steamcommunity/public/images/apps/{0}/{1}",
|
||||
"http://steamcdn-a.akamaihd.net/steamcommunity/public/images/apps/{0}/{1}",
|
||||
this._GameId,
|
||||
info.IsAchieved == true ? info.IconNormal : info.IconLocked)),
|
||||
info);
|
||||
|
||||
@@ -106,12 +106,6 @@ namespace SAM.Game
|
||||
return;
|
||||
}
|
||||
|
||||
/* Disable server certificate validation.
|
||||
* This is for media downloads (achievement icons).
|
||||
* https://media.steamcommunity.com/ has certs issued to (various).e.akamai.net.
|
||||
*/
|
||||
ServicePointManager.ServerCertificateValidationCallback = (s, ce, ch, e) => true;
|
||||
|
||||
Application.EnableVisualStyles();
|
||||
Application.SetCompatibleTextRenderingDefault(false);
|
||||
Application.Run(new Manager(appId, client));
|
||||
|
||||
Reference in New Issue
Block a user