From e266b8ad31b6987b06376f5585882b636f0a1db9 Mon Sep 17 00:00:00 2001 From: Archi Date: Fri, 3 Feb 2023 02:32:17 +0100 Subject: [PATCH] Actually, this makes more sense --- ArchiSteamFarm/Web/WebBrowser.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ArchiSteamFarm/Web/WebBrowser.cs b/ArchiSteamFarm/Web/WebBrowser.cs index 0f75be3dd..3dcbbd9a4 100644 --- a/ArchiSteamFarm/Web/WebBrowser.cs +++ b/ArchiSteamFarm/Web/WebBrowser.cs @@ -76,9 +76,13 @@ public sealed class WebBrowser : IDisposable { }; if (webProxy != null) { - HttpClientHandler.PreAuthenticate = true; HttpClientHandler.Proxy = webProxy; HttpClientHandler.UseProxy = true; + + if (webProxy.Credentials != null) { + // We can be pretty sure that user knows what he's doing and that proxy indeed requires authentication, save roundtrip + HttpClientHandler.PreAuthenticate = true; + } } #if NETFRAMEWORK