Skip to content

Commit

Permalink
Fix #51
Browse files Browse the repository at this point in the history
  • Loading branch information
InedoJohn committed Sep 3, 2019
1 parent 2ea8e1b commit b7ca328
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions TeamCity/InedoExtension/TeamCityWebClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ namespace Inedo.Extensions.TeamCity
{
internal sealed class TeamCityWebClient : WebClient
{
static TeamCityWebClient()
{
// ensure TLS v1.2 is supported
ServicePointManager.SecurityProtocol = ServicePointManager.SecurityProtocol | SecurityProtocolType.Tls12;
}

public TeamCityWebClient(ITeamCityConnectionInfo connectionInfo)
{
this.BaseAddress = connectionInfo.GetApiUrl();
Expand Down

0 comments on commit b7ca328

Please sign in to comment.