From 71638ec77e7fcd0a36949fa380538ccc182c586c Mon Sep 17 00:00:00 2001 From: Keivan Beigi Date: Fri, 5 Dec 2014 14:23:30 -0800 Subject: [PATCH] switched services to http --- src/NzbDrone.Common/Cloud/CloudClient.cs | 2 +- src/NzbDrone.Common/NzbDrone.Common.csproj | 2 +- ...eCertErrorPolicy.cs => X509CertificateValidationPolicy.cs} | 4 ++-- src/NzbDrone.Host/Bootstrap.cs | 2 +- src/NzbDrone.Host/Owin/OwinHostController.cs | 2 +- src/NzbDrone.Update/UpdateApp.cs | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) rename src/NzbDrone.Common/Security/{IgnoreCertErrorPolicy.cs => X509CertificateValidationPolicy.cs} (92%) diff --git a/src/NzbDrone.Common/Cloud/CloudClient.cs b/src/NzbDrone.Common/Cloud/CloudClient.cs index b375ec2c1..04c3b7b8a 100644 --- a/src/NzbDrone.Common/Cloud/CloudClient.cs +++ b/src/NzbDrone.Common/Cloud/CloudClient.cs @@ -9,7 +9,7 @@ namespace NzbDrone.Common.Cloud public class DroneServicesHttpRequestBuilder : HttpRequestBuilder, IDroneServicesRequestBuilder { - private const string ROOT_URL = "https://services.sonarr.tv/v1/"; + private const string ROOT_URL = "http://services.sonarr.tv/v1/"; public DroneServicesHttpRequestBuilder() : base(ROOT_URL) diff --git a/src/NzbDrone.Common/NzbDrone.Common.csproj b/src/NzbDrone.Common/NzbDrone.Common.csproj index 684bc5e29..4a5b2de4b 100644 --- a/src/NzbDrone.Common/NzbDrone.Common.csproj +++ b/src/NzbDrone.Common/NzbDrone.Common.csproj @@ -175,7 +175,7 @@ - + diff --git a/src/NzbDrone.Common/Security/IgnoreCertErrorPolicy.cs b/src/NzbDrone.Common/Security/X509CertificateValidationPolicy.cs similarity index 92% rename from src/NzbDrone.Common/Security/IgnoreCertErrorPolicy.cs rename to src/NzbDrone.Common/Security/X509CertificateValidationPolicy.cs index 537cf430b..606782101 100644 --- a/src/NzbDrone.Common/Security/IgnoreCertErrorPolicy.cs +++ b/src/NzbDrone.Common/Security/X509CertificateValidationPolicy.cs @@ -6,9 +6,9 @@ using NzbDrone.Common.Instrumentation; namespace NzbDrone.Common.Security { - public static class IgnoreCertErrorPolicy + public static class X509CertificateValidationPolicy { - private static readonly Logger Logger = NzbDroneLogger.GetLogger("IgnoreCertErrorPolicy"); + private static readonly Logger Logger = NzbDroneLogger.GetLogger(); public static void Register() { diff --git a/src/NzbDrone.Host/Bootstrap.cs b/src/NzbDrone.Host/Bootstrap.cs index 1f736d1f3..53331baa5 100644 --- a/src/NzbDrone.Host/Bootstrap.cs +++ b/src/NzbDrone.Host/Bootstrap.cs @@ -23,7 +23,7 @@ namespace NzbDrone.Host try { GlobalExceptionHandlers.Register(); - IgnoreCertErrorPolicy.Register(); + X509CertificateValidationPolicy.Register(); Logger.Info("Starting NzbDrone - {0} - Version {1}", Assembly.GetCallingAssembly().Location, Assembly.GetExecutingAssembly().GetName().Version); diff --git a/src/NzbDrone.Host/Owin/OwinHostController.cs b/src/NzbDrone.Host/Owin/OwinHostController.cs index bfa1e26d2..6db1a2477 100644 --- a/src/NzbDrone.Host/Owin/OwinHostController.cs +++ b/src/NzbDrone.Host/Owin/OwinHostController.cs @@ -34,7 +34,7 @@ namespace NzbDrone.Host.Owin public void StartServer() { - IgnoreCertErrorPolicy.Register(); + X509CertificateValidationPolicy.Register(); if (OsInfo.IsWindows) { diff --git a/src/NzbDrone.Update/UpdateApp.cs b/src/NzbDrone.Update/UpdateApp.cs index 7589ab53b..177e16517 100644 --- a/src/NzbDrone.Update/UpdateApp.cs +++ b/src/NzbDrone.Update/UpdateApp.cs @@ -36,7 +36,7 @@ namespace NzbDrone.Update Console.WriteLine("Starting NzbDrone Update Client"); - IgnoreCertErrorPolicy.Register(); + X509CertificateValidationPolicy.Register(); GlobalExceptionHandlers.Register();