switched services to http

pull/4/head
Keivan Beigi 10 years ago
parent 3ce65eec08
commit 71638ec77e

@ -9,7 +9,7 @@ namespace NzbDrone.Common.Cloud
public class DroneServicesHttpRequestBuilder : HttpRequestBuilder, IDroneServicesRequestBuilder 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() public DroneServicesHttpRequestBuilder()
: base(ROOT_URL) : base(ROOT_URL)

@ -175,7 +175,7 @@
<Compile Include="RateGate.cs" /> <Compile Include="RateGate.cs" />
<Compile Include="Reflection\ReflectionExtensions.cs" /> <Compile Include="Reflection\ReflectionExtensions.cs" />
<Compile Include="Extensions\ResourceExtensions.cs" /> <Compile Include="Extensions\ResourceExtensions.cs" />
<Compile Include="Security\IgnoreCertErrorPolicy.cs" /> <Compile Include="Security\X509CertificateValidationPolicy.cs" />
<Compile Include="Serializer\IntConverter.cs" /> <Compile Include="Serializer\IntConverter.cs" />
<Compile Include="Serializer\Json.cs" /> <Compile Include="Serializer\Json.cs" />
<Compile Include="ServiceFactory.cs" /> <Compile Include="ServiceFactory.cs" />

@ -6,9 +6,9 @@ using NzbDrone.Common.Instrumentation;
namespace NzbDrone.Common.Security 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() public static void Register()
{ {

@ -23,7 +23,7 @@ namespace NzbDrone.Host
try try
{ {
GlobalExceptionHandlers.Register(); GlobalExceptionHandlers.Register();
IgnoreCertErrorPolicy.Register(); X509CertificateValidationPolicy.Register();
Logger.Info("Starting NzbDrone - {0} - Version {1}", Assembly.GetCallingAssembly().Location, Assembly.GetExecutingAssembly().GetName().Version); Logger.Info("Starting NzbDrone - {0} - Version {1}", Assembly.GetCallingAssembly().Location, Assembly.GetExecutingAssembly().GetName().Version);

@ -34,7 +34,7 @@ namespace NzbDrone.Host.Owin
public void StartServer() public void StartServer()
{ {
IgnoreCertErrorPolicy.Register(); X509CertificateValidationPolicy.Register();
if (OsInfo.IsWindows) if (OsInfo.IsWindows)
{ {

@ -36,7 +36,7 @@ namespace NzbDrone.Update
Console.WriteLine("Starting NzbDrone Update Client"); Console.WriteLine("Starting NzbDrone Update Client");
IgnoreCertErrorPolicy.Register(); X509CertificateValidationPolicy.Register();
GlobalExceptionHandlers.Register(); GlobalExceptionHandlers.Register();

Loading…
Cancel
Save