don't query the session as much in the modules, rely on a variable from the base class and store the username as needed

This commit is contained in:
Drewster727 2016-03-30 11:06:35 -05:00
parent a028a68a08
commit a668ea04ec
4 changed files with 29 additions and 15 deletions

View file

@ -69,7 +69,7 @@ namespace PlexRequests.UI
if (port == -1)
port = GetStartupPort();
var options = new StartOptions( $"http://+:{port}")
var options = new StartOptions(Debugger.IsAttached ? $"http://localhost:{port}" : $"http://+:{port}")
{
ServerFactory = "Microsoft.Owin.Host.HttpListener"
};