From c122502634be51f2f63e3c830333cf349f0fcc6d Mon Sep 17 00:00:00 2001 From: "kay.one" Date: Mon, 20 May 2013 19:41:24 -0700 Subject: [PATCH] fixed app not responding to anything but localhost disabled startup update check --- .../EventingTests/MessageAggregatorCommandTests.cs | 2 +- NzbDrone/AppMain.cs | 7 +++---- NzbDrone/Owin/OwinHostController.cs | 4 ++-- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/NzbDrone.Common.Test/EventingTests/MessageAggregatorCommandTests.cs b/NzbDrone.Common.Test/EventingTests/MessageAggregatorCommandTests.cs index a349c37b8..d0bbae9a5 100644 --- a/NzbDrone.Common.Test/EventingTests/MessageAggregatorCommandTests.cs +++ b/NzbDrone.Common.Test/EventingTests/MessageAggregatorCommandTests.cs @@ -40,7 +40,7 @@ namespace NzbDrone.Common.Test.EventingTests } [Test] - public void should_publish_command_by_with_optional_arg_with_name() + public void should_publish_command_by_with_optional_arg_using_name() { Mocker.GetMock().Setup(c => c.GetImplementations(typeof(ICommand))) .Returns(new List { typeof(CommandA), typeof(CommandB) }); diff --git a/NzbDrone/AppMain.cs b/NzbDrone/AppMain.cs index 9f2a6b43b..77b3b7a3b 100644 --- a/NzbDrone/AppMain.cs +++ b/NzbDrone/AppMain.cs @@ -2,8 +2,6 @@ using System.Diagnostics; using System.Reflection; using NLog; -using NzbDrone.Core.Update; -using NzbDrone.Core.Update.Commands; namespace NzbDrone { @@ -44,7 +42,8 @@ namespace NzbDrone } var container = MainAppContainerBuilder.BuildContainer(); - try + + /*try { container.Resolve().Execute(new ApplicationUpdateCommand()); } @@ -52,7 +51,7 @@ namespace NzbDrone { logger.ErrorException("Application update failed.", e); } - +*/ container.Resolve().Route(args); } catch (Exception e) diff --git a/NzbDrone/Owin/OwinHostController.cs b/NzbDrone/Owin/OwinHostController.cs index 8a5da9ec4..0429f097e 100644 --- a/NzbDrone/Owin/OwinHostController.cs +++ b/NzbDrone/Owin/OwinHostController.cs @@ -27,8 +27,8 @@ namespace NzbDrone.Owin { var options = new StartOptions { - App = GetType().AssemblyQualifiedName, - Port = _configFileProvider.Port + Url = "http://*:" + _configFileProvider.Port, + App = GetType().AssemblyQualifiedName }; _host = WebApplication.Start(options, BuildApp);