From a0bcf2774dee0fa6b7bdda7e7f865e863742f935 Mon Sep 17 00:00:00 2001 From: Jordan Brown Date: Tue, 27 Feb 2018 20:56:52 -0500 Subject: [PATCH] Fix TLS usage for PR JSON update FUCK --- TGS.Server/Instance/Repository.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/TGS.Server/Instance/Repository.cs b/TGS.Server/Instance/Repository.cs index c9fdcbea4d..0a7a7a60f9 100644 --- a/TGS.Server/Instance/Repository.cs +++ b/TGS.Server/Instance/Repository.cs @@ -1016,6 +1016,8 @@ namespace TGS.Server prAPI = prAPI.Replace("github.com", "api.github.com/repos"); prAPI += "/pulls/" + PRNumberString + ".json"; string json; + //tls1.2 meme + ServicePointManager.SecurityProtocol |= SecurityProtocolType.Tls12; using (var wc = new WebClient()) { wc.Headers.Add("user-agent", "TGS.Server");