Skip to content

Commit

Permalink
chore: set security protocols at program startup instead of helper
Browse files Browse the repository at this point in the history
  • Loading branch information
James Trinklein committed Feb 22, 2018
1 parent 5d1c216 commit d118d70
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/Paket.Bootstrapper/HelperProxies/WebRequestProxy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ public class WebRequestProxy : IWebRequestProxy
{
public WebRequestProxy()
{
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
Client = new WebClient();
}

Expand Down
5 changes: 5 additions & 0 deletions src/Paket.Bootstrapper/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,17 @@

namespace Paket.Bootstrapper
{

static class Program
{
private static readonly Stopwatch executionWatch = new Stopwatch();

static void Main(string[] args)
{
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12
| SecurityProtocolType.Tls11
| SecurityProtocolType.Tls
| SecurityProtocolType.Ssl3;
executionWatch.Start();
Console.CancelKeyPress += CancelKeyPressed;

Expand Down

0 comments on commit d118d70

Please sign in to comment.