Revision e394ef0f trunk/Pithos.Client.WPF/Preferences/PreferencesViewModel.cs
b/trunk/Pithos.Client.WPF/Preferences/PreferencesViewModel.cs | ||
---|---|---|
46 | 46 |
using System.ComponentModel.Composition; |
47 | 47 |
using System.Diagnostics; |
48 | 48 |
using System.IO; |
49 |
using System.Net; |
|
49 | 50 |
using System.Reflection; |
50 | 51 |
using System.Threading.Tasks; |
51 | 52 |
using System.Windows; |
... | ... | |
333 | 334 |
} |
334 | 335 |
|
335 | 336 |
NotifyOfPropertyChange(()=>Settings); |
337 |
|
|
338 |
if (IgnoreCertificateErrors) |
|
339 |
ServicePointManager.ServerCertificateValidationCallback= (sender,certificate,chain,errors)=> true; |
|
340 |
else |
|
341 |
{ |
|
342 |
ServicePointManager.ServerCertificateValidationCallback = null; |
|
343 |
} |
|
336 | 344 |
} |
337 | 345 |
|
338 | 346 |
/* public void ChangePithosFolder() |
... | ... | |
496 | 504 |
NotifyOfPropertyChange(()=>DebugLoggingEnabled); |
497 | 505 |
} |
498 | 506 |
} |
507 |
|
|
508 |
public bool IgnoreCertificateErrors |
|
509 |
{ |
|
510 |
get { return Settings.IgnoreCertificateErrors; } |
|
511 |
set { |
|
512 |
Settings.IgnoreCertificateErrors = value; |
|
513 |
NotifyOfPropertyChange(() => IgnoreCertificateErrors); |
|
514 |
} |
|
515 |
} |
|
499 | 516 |
|
500 | 517 |
#endregion |
501 | 518 |
|
Also available in: Unified diff