Skip to content

Commit

Permalink
Fix image retrieval by enabling TLS 1.2 (#22)
Browse files Browse the repository at this point in the history
Due to targeting .NET 4.0, TLS 1.2 was disabled by default.
  • Loading branch information
ORelio committed Apr 27, 2021
1 parent cbf8967 commit fd69a8f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README-En.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
=======================================================
==== SpotlightDL v1.4.4 - By ORelio - Microzoom.fr ====
==== SpotlightDL v1.4.5 - By ORelio - Microzoom.fr ====
=======================================================

Thanks for dowloading SpotlightDL!
Expand Down
2 changes: 1 addition & 1 deletion README-Fr.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
========================================================
==== SpotlightDL v1.4.4 - Par ORelio - Microzoom.fr ====
==== SpotlightDL v1.4.5 - Par ORelio - Microzoom.fr ====
========================================================

Merci d'avoir téléchargé SpotlightDL!
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Where the expected arguments are:
- `cdm` : Purpose currently unknown, `cdm=1`
- `disphorzres`: Screen width in pixels
- `dispvertres`: Screen height in pixels
- `lo` : Purpose currently uknown, optional
- `lo` : Purpose currently unknown, optional
- `pl` : Locale, e.g. `en-US`
- `lc` : Language, e.g. `en-US`
- `ctry` : Country, e.g. `us`
Expand Down
5 changes: 4 additions & 1 deletion SpotlightDownloader/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,13 @@ namespace SpotlightDownloader
class Program
{
public const string Name = "SpotlightDL";
public const string Version = "1.4.4";
public const string Version = "1.4.5";

static void Main(string[] args)
{
//Configure System.Net to use TLS 1.2 - disabled by default for .NET 4.0 - Stackoverflow 33761919 - Issue #22
System.Net.ServicePointManager.SecurityProtocol = (System.Net.SecurityProtocolType)3072; //Tls12

if (args.Length > 0)
{
string action = null;
Expand Down

0 comments on commit fd69a8f

Please sign in to comment.