diff --git a/source/Reloaded.Mod.Launcher/ModuleInitialiser.cs b/source/Reloaded.Mod.Launcher/ModuleInitialiser.cs index cb7fe9f5..dd2d845c 100644 --- a/source/Reloaded.Mod.Launcher/ModuleInitialiser.cs +++ b/source/Reloaded.Mod.Launcher/ModuleInitialiser.cs @@ -7,5 +7,9 @@ public static void Init() { // Raise maximum number of WebRequest connections ServicePointManager.DefaultConnectionLimit = int.MaxValue; + + // When .NET makes first HTTP request, it takes some time to resolve proxy settings. + // We can speed this up by resolving the proxy ourselves. + Task.Run(WebRequest.GetSystemWebProxy); } } \ No newline at end of file