fixed app not responding to anything but localhost

disabled startup update check
pull/4/head
kay.one 12 years ago
parent b010c8d5a1
commit c122502634

@ -40,7 +40,7 @@ namespace NzbDrone.Common.Test.EventingTests
} }
[Test] [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<IServiceFactory>().Setup(c => c.GetImplementations(typeof(ICommand))) Mocker.GetMock<IServiceFactory>().Setup(c => c.GetImplementations(typeof(ICommand)))
.Returns(new List<Type> { typeof(CommandA), typeof(CommandB) }); .Returns(new List<Type> { typeof(CommandA), typeof(CommandB) });

@ -2,8 +2,6 @@
using System.Diagnostics; using System.Diagnostics;
using System.Reflection; using System.Reflection;
using NLog; using NLog;
using NzbDrone.Core.Update;
using NzbDrone.Core.Update.Commands;
namespace NzbDrone namespace NzbDrone
{ {
@ -44,7 +42,8 @@ namespace NzbDrone
} }
var container = MainAppContainerBuilder.BuildContainer(); var container = MainAppContainerBuilder.BuildContainer();
try
/*try
{ {
container.Resolve<IUpdateService>().Execute(new ApplicationUpdateCommand()); container.Resolve<IUpdateService>().Execute(new ApplicationUpdateCommand());
} }
@ -52,7 +51,7 @@ namespace NzbDrone
{ {
logger.ErrorException("Application update failed.", e); logger.ErrorException("Application update failed.", e);
} }
*/
container.Resolve<Router>().Route(args); container.Resolve<Router>().Route(args);
} }
catch (Exception e) catch (Exception e)

@ -27,8 +27,8 @@ namespace NzbDrone.Owin
{ {
var options = new StartOptions var options = new StartOptions
{ {
App = GetType().AssemblyQualifiedName, Url = "http://*:" + _configFileProvider.Port,
Port = _configFileProvider.Port App = GetType().AssemblyQualifiedName
}; };
_host = WebApplication.Start(options, BuildApp); _host = WebApplication.Start(options, BuildApp);

Loading…
Cancel
Save