mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-08 20:27:36 +02:00
Use system web proxy
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user