diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-10-14 11:08:33 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-10-14 11:08:33 -0400 |
| commit | 85928ea2b42d9aac1d9bc18006f9f24a5a682980 (patch) | |
| tree | 9034d1157e3f0ececc278030ed5bbc798f97dc3f /MediaBrowser.Server.Mono/Program.cs | |
| parent | b5059152fefe68ae47252dba3b7785cc9770629e (diff) | |
only update episodes that have been changed
Diffstat (limited to 'MediaBrowser.Server.Mono/Program.cs')
| -rw-r--r-- | MediaBrowser.Server.Mono/Program.cs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/MediaBrowser.Server.Mono/Program.cs b/MediaBrowser.Server.Mono/Program.cs index ea6cca6ffb..6d3cbcf26b 100644 --- a/MediaBrowser.Server.Mono/Program.cs +++ b/MediaBrowser.Server.Mono/Program.cs @@ -11,6 +11,9 @@ using System.Diagnostics; using System.IO; using System.Threading; using System.Windows; +using System.Net; +using System.Net.Security; +using System.Security.Cryptography.X509Certificates; using Gtk; using Gdk; using System.Threading.Tasks; @@ -90,12 +93,17 @@ namespace MediaBrowser.Server.Mono } } + private static RemoteCertificateValidationCallback _ignoreCertificates = new RemoteCertificateValidationCallback(delegate { return true; }); + private static void RunApplication(ServerApplicationPaths appPaths, ILogManager logManager) { // TODO: Show splash here SystemEvents.SessionEnding += SystemEvents_SessionEnding; + // Allow all https requests + ServicePointManager.ServerCertificateValidationCallback = _ignoreCertificates; + _appHost = new ApplicationHost(appPaths, logManager); var task = _appHost.Init(); @@ -264,4 +272,12 @@ namespace MediaBrowser.Server.Mono Shutdown (); } } + + class NoCheckCertificatePolicy : ICertificatePolicy + { + public bool CheckValidationResult (ServicePoint srvPoint, X509Certificate certificate, WebRequest request, int certificateProblem) + { + return true; + } + } } |
