Browse Source

Yet another try at making proxy authentication work. Closes #46.

pull/263/merge
Daniel Grunwald 14 years ago
parent
commit
ac683e20e7
  1. 4
      ILSpy/AboutPage.cs

4
ILSpy/AboutPage.cs

@ -183,7 +183,9 @@ namespace ICSharpCode.ILSpy
{ {
var tcs = new TaskCompletionSource<AvailableVersionInfo>(); var tcs = new TaskCompletionSource<AvailableVersionInfo>();
WebClient wc = new WebClient(); WebClient wc = new WebClient();
wc.UseDefaultCredentials = true; IWebProxy systemWebProxy = WebRequest.GetSystemWebProxy();
systemWebProxy.Credentials = CredentialCache.DefaultCredentials;
wc.Proxy = systemWebProxy;
wc.DownloadDataCompleted += delegate(object sender, DownloadDataCompletedEventArgs e) { wc.DownloadDataCompleted += delegate(object sender, DownloadDataCompletedEventArgs e) {
if (e.Error != null) { if (e.Error != null) {
tcs.SetException(e.Error); tcs.SetException(e.Error);

Loading…
Cancel
Save