diff --git a/TGS.Server/Instance/Repository.cs b/TGS.Server/Instance/Repository.cs
index c1d4b7b571..a36eda4bb1 100644
--- a/TGS.Server/Instance/Repository.cs
+++ b/TGS.Server/Instance/Repository.cs
@@ -1016,8 +1016,6 @@ 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");
diff --git a/TGS.Server/Server.cs b/TGS.Server/Server.cs
index 42351977b7..c907261038 100644
--- a/TGS.Server/Server.cs
+++ b/TGS.Server/Server.cs
@@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using System.IO;
+using System.Net;
using System.Reflection;
using System.Security.Principal;
using System.ServiceModel;
@@ -89,6 +90,9 @@ namespace TGS.Server
/// The to use
public Server(string[] args, ILogger logger)
{
+ //tls1.2 meme
+ ServicePointManager.SecurityProtocol |= SecurityProtocolType.Tls12;
+
Logger = logger;
Environment.CurrentDirectory = Directory.CreateDirectory(Path.Combine(Path.GetTempPath(), Assembly.GetExecutingAssembly().GetName().Name)).FullName; //MOVE THIS POINTER BECAUSE ONE TIME I ALMOST ACCIDENTALLY NUKED MYSELF BY REFACTORING! http://imgur.com/zvGEpJD.png