Use Akamai URLs for media to avoid having to disable SSL certificate validation.

This commit is contained in:
gibbed
2019-05-24 14:42:44 -05:00
parent c8e914d8a1
commit 130d13d256
4 changed files with 2 additions and 14 deletions

View File

@@ -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);

View File

@@ -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));