diff options
Diffstat (limited to 'src/main.lib/Services/ProxyService.cs')
-rw-r--r-- | src/main.lib/Services/ProxyService.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main.lib/Services/ProxyService.cs b/src/main.lib/Services/ProxyService.cs index 36c0d9f..f2d49a9 100644 --- a/src/main.lib/Services/ProxyService.cs +++ b/src/main.lib/Services/ProxyService.cs @@ -10,6 +10,7 @@ namespace PKISharp.WACS.Services private readonly ILogService _log; private IWebProxy? _proxy; private readonly ISettingsService _settings; + public SslProtocols SslProtocols { get; set; } = SslProtocols.None; public ProxyService(ILogService log, ISettingsService settings) { @@ -26,12 +27,12 @@ namespace PKISharp.WACS.Services /// Get prepared HttpClient with correct system proxy settings /// </summary> /// <returns></returns> - public HttpClient GetHttpClient(bool checkSsl = true, SslProtocols sslProtocols = SslProtocols.None) + public HttpClient GetHttpClient(bool checkSsl = true) { var httpClientHandler = new HttpClientHandler() { Proxy = GetWebProxy(), - SslProtocols = sslProtocols + SslProtocols = SslProtocols }; if (!checkSsl) { |