Skip to content
Browse files

Use default proxy settings when checking for updates.

  • Loading branch information...
1 parent ff9edd2 commit 7b6fe8072fc2af73a301905ce5bc898e1bc0c3ba @dgrunwald dgrunwald committed Feb 24, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 ILSpy/AboutPage.cs
View
3 ILSpy/AboutPage.cs
@@ -77,7 +77,7 @@ static void AddUpdateCheckButton(StackPanel stackPanel, DecompilerTextView textV
delegate (Task<AvailableVersionInfo> 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 @@ static Task<AvailableVersionInfo> GetLatestVersionAsync()
{
var tcs = new TaskCompletionSource<AvailableVersionInfo>();
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);

0 comments on commit 7b6fe80

Please sign in to comment.
Something went wrong with that request. Please try again.