|
|
|
@ -43,6 +43,12 @@ namespace NzbDrone.Host.AccessControl
|
|
|
|
|
var localHttpsUrls = BuildUrls("https", "localhost", _configFileProvider.SslPort);
|
|
|
|
|
var wildcardHttpsUrls = BuildUrls("https", "*", _configFileProvider.SslPort);
|
|
|
|
|
|
|
|
|
|
if (!_configFileProvider.EnableSsl)
|
|
|
|
|
{
|
|
|
|
|
localHttpsUrls.Clear();
|
|
|
|
|
wildcardHttpsUrls.Clear();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (OsInfo.IsWindows && !_runtimeInfo.IsAdmin)
|
|
|
|
|
{
|
|
|
|
|
var httpUrls = wildcardHttpUrls.All(IsRegistered) ? wildcardHttpUrls : localHttpUrls;
|
|
|
|
@ -51,7 +57,6 @@ namespace NzbDrone.Host.AccessControl
|
|
|
|
|
Urls.AddRange(httpUrls);
|
|
|
|
|
Urls.AddRange(httpsUrls);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
Urls.AddRange(wildcardHttpUrls);
|
|
|
|
|