Inform users that Mono is no longer needed

Note: Not enabled currently, will enable at a later date
This commit is contained in:
flightlevel
2019-04-27 20:59:33 +10:00
parent fad453cf0e
commit 0d4c8ba860
6 changed files with 59 additions and 3 deletions

View File

@@ -33,6 +33,8 @@ namespace Jackett.Common.Models.DTO
public string omdburl { get; set; }
[DataMember]
public string app_version { get; set; }
[DataMember]
public bool can_run_netcore { get; set; }
[DataMember]
public ProxyType proxy_type { get; set; }
@@ -50,7 +52,7 @@ namespace Jackett.Common.Models.DTO
notices = new string[0];
}
public ServerConfig(IEnumerable<string> notices, Models.Config.ServerConfig config, string version)
public ServerConfig(IEnumerable<string> notices, Models.Config.ServerConfig config, string version, bool canRunNetCore)
{
this.notices = notices;
port = config.Port;
@@ -65,6 +67,7 @@ namespace Jackett.Common.Models.DTO
omdbkey = config.OmdbApiKey;
omdburl = config.OmdbApiUrl;
app_version = version;
can_run_netcore = canRunNetCore;
proxy_type = config.ProxyType;
proxy_url = config.ProxyUrl;