Use own update manager, so we can pass proxy #1266

This commit is contained in:
bao-qian
2017-03-07 19:23:42 +00:00
parent ade6c46cca
commit 6f42bcfa4f
4 changed files with 40 additions and 12 deletions

View File

@@ -272,7 +272,7 @@ namespace Wox
return;
}
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(Infrastructure.Constant.Github);
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(Infrastructure.Constant.Repository);
if (string.IsNullOrEmpty(_settings.Proxy.UserName) || string.IsNullOrEmpty(_settings.Proxy.Password))
{
request.Proxy = new WebProxy(_settings.Proxy.Server, _settings.Proxy.Port);