mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-01 14:10:53 +00:00
ASFB HttpClientHandler improvements
We should increase our security by checking against revoked SSL certificates, just in case. When using proxy, pre-authenticating makes sense since if user provided the credentials, we can be pretty sure they're required and save a roundtrip.
This commit is contained in:
@@ -71,10 +71,12 @@ public sealed class WebBrowser : IDisposable {
|
||||
AutomaticDecompression = DecompressionMethods.All,
|
||||
#endif
|
||||
|
||||
CheckCertificateRevocationList = true,
|
||||
CookieContainer = CookieContainer
|
||||
};
|
||||
|
||||
if (webProxy != null) {
|
||||
HttpClientHandler.PreAuthenticate = true;
|
||||
HttpClientHandler.Proxy = webProxy;
|
||||
HttpClientHandler.UseProxy = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user