Browse Source

Use default proxy settings when checking for updates.

pull/70/head
Daniel Grunwald 15 years ago
parent
commit
7b6fe8072f
  1. 3
      ILSpy/AboutPage.cs

3
ILSpy/AboutPage.cs

@ -77,7 +77,7 @@ namespace ICSharpCode.ILSpy @@ -77,7 +77,7 @@ namespace ICSharpCode.ILSpy
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 @@ namespace ICSharpCode.ILSpy @@ -128,6 +128,7 @@ namespace ICSharpCode.ILSpy
{
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);

Loading…
Cancel
Save