|
|
@ -64,6 +64,10 @@ namespace PlexRequests.UI
|
|
|
|
x => x.Port,
|
|
|
|
x => x.Port,
|
|
|
|
e => -1);
|
|
|
|
e => -1);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var listenerPrefix = result.MapResult(
|
|
|
|
|
|
|
|
x => x.ListenerPrefix,
|
|
|
|
|
|
|
|
e => string.Empty);
|
|
|
|
|
|
|
|
|
|
|
|
var updated = result.MapResult(x => x.Updated, e => UpdateValue.None);
|
|
|
|
var updated = result.MapResult(x => x.Updated, e => UpdateValue.None);
|
|
|
|
CheckUpdate(updated);
|
|
|
|
CheckUpdate(updated);
|
|
|
|
|
|
|
|
|
|
|
@ -81,7 +85,12 @@ namespace PlexRequests.UI
|
|
|
|
if (port == -1 || port == 3579)
|
|
|
|
if (port == -1 || port == 3579)
|
|
|
|
port = GetStartupPort();
|
|
|
|
port = GetStartupPort();
|
|
|
|
|
|
|
|
|
|
|
|
var options = new StartOptions(Debugger.IsAttached ? $"http://localhost:{port}" : $"http://+:{port}")
|
|
|
|
if (string.IsNullOrEmpty(listenerPrefix))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
listenerPrefix = "+";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var options = new StartOptions(Debugger.IsAttached ? $"http://localhost:{port}" : $"http://{listenerPrefix}:{port}")
|
|
|
|
{
|
|
|
|
{
|
|
|
|
ServerFactory = "Microsoft.Owin.Host.HttpListener"
|
|
|
|
ServerFactory = "Microsoft.Owin.Host.HttpListener"
|
|
|
|
};
|
|
|
|
};
|
|
|
|