From 7b6fe8072fc2af73a301905ce5bc898e1bc0c3ba Mon Sep 17 00:00:00 2001 From: Daniel Grunwald Date: Thu, 24 Feb 2011 13:39:27 +0100 Subject: [PATCH] Use default proxy settings when checking for updates. --- ILSpy/AboutPage.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ILSpy/AboutPage.cs b/ILSpy/AboutPage.cs index d1f40b799..de8f7edd0 100644 --- a/ILSpy/AboutPage.cs +++ b/ILSpy/AboutPage.cs @@ -77,7 +77,7 @@ namespace ICSharpCode.ILSpy delegate (Task task) { try { stackPanel.Children.Clear(); - ShowAvailableVersion(latestAvailableVersion, stackPanel); + ShowAvailableVersion(task.Result, stackPanel); } catch (Exception ex) { AvalonEditTextOutput exceptionOutput = new AvalonEditTextOutput(); exceptionOutput.WriteLine(ex.ToString()); @@ -128,6 +128,7 @@ namespace ICSharpCode.ILSpy { var tcs = new TaskCompletionSource(); WebClient wc = new WebClient(); + wc.Proxy = new WebProxy() { UseDefaultCredentials = true }; wc.DownloadDataCompleted += delegate(object sender, DownloadDataCompletedEventArgs e) { if (e.Error != null) { tcs.SetException(e.Error);