Attempt to handle not found System.Runtime.InteropServices.RuntimeInformation

https://github.com/Jackett/Jackett/issues/3816
This commit is contained in:
flightlevel
2018-09-24 19:24:17 +10:00
parent 2f378210d9
commit f9b4b5a76c
5 changed files with 35 additions and 14 deletions

View File

@@ -47,9 +47,7 @@ namespace Jackett.Server
{
if (string.IsNullOrEmpty(options.Client))
{
bool runningOnDotNetCore = RuntimeInformation.FrameworkDescription.IndexOf("Core", StringComparison.OrdinalIgnoreCase) >= 0;
if (runningOnDotNetCore)
if (DotNetCoreUtil.IsRunningOnDotNetCore)
{
options.Client = "httpclientnetcore";
}