Skip to content

Commit

Permalink
Merge pull request #64 from seiggy/master
Browse files Browse the repository at this point in the history
TLS/SLS Fix
  • Loading branch information
metherul authored Apr 15, 2019
2 parents 959ead3 + e16af5b commit fdb9a58
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/Automaton.Model/NexusApi/ApiBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ public async Task<bool> InitializeAsync(string apiKey = "")
public bool Initialize(string apiKey = "")
{
ServicePointManager.Expect100Continue = true;
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;


_logger.WriteLine("Initializing API base");

HttpClient = new HttpClient()
Expand Down
1 change: 1 addition & 0 deletions src/Automaton.View/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ public partial class App : Application
{
private void Application_Startup(object sender, StartupEventArgs e)
{
System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12 | System.Net.SecurityProtocolType.Ssl3 | System.Net.SecurityProtocolType.Tls11;
var assembly = Assembly.GetExecutingAssembly();
var resourceName = "Automaton.View.Resources.Bin.7z-x86.dll";

Expand Down

0 comments on commit fdb9a58

Please sign in to comment.