Use system web proxy

This commit is contained in:
bao-qian
2016-05-13 23:28:17 +01:00
parent 65577a67dc
commit 2d1dfece25

View File

@@ -9,7 +9,7 @@ namespace Wox.Infrastructure.Http
{ {
public static class Http public static class Http
{ {
public static WebProxy WebProxy(IHttpProxy proxy) public static IWebProxy WebProxy(IHttpProxy proxy)
{ {
if (proxy != null && proxy.Enabled && !string.IsNullOrEmpty(proxy.Server)) if (proxy != null && proxy.Enabled && !string.IsNullOrEmpty(proxy.Server))
{ {
@@ -29,7 +29,7 @@ namespace Wox.Infrastructure.Http
} }
else else
{ {
return null; return WebRequest.GetSystemWebProxy();
} }
} }