Skip to content

Commit

Permalink
Correctly apply "no proxy" setting.
Browse files Browse the repository at this point in the history
  • Loading branch information
BobVul committed Feb 1, 2019
1 parent 1ae5539 commit d7afceb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion KeeAnywhere/StorageProviders/ProxyTools.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ public static HttpClientHandler CreateHttpClientHandler()
public static void ApplyProxy(this HttpClientHandler handler)
{
var proxy = GetProxy();
if (proxy == null) return;
if (proxy == null)
{
handler.UseProxy = false;
return;
}

handler.UseProxy = true;
handler.Proxy = proxy;
Expand Down

0 comments on commit d7afceb

Please sign in to comment.