New: Option to use SSL to connect to nzbget

This commit is contained in:
Mark McDowall 2014-02-26 19:21:15 -08:00
parent d44b220fd0
commit e309f89ea1
2 changed files with 7 additions and 1 deletions

View File

@ -57,7 +57,10 @@ namespace NzbDrone.Core.Download.Clients.Nzbget
private IRestClient BuildClient(NzbgetSettings settings)
{
var url = String.Format("http://{0}:{1}/jsonrpc",
var protocol = settings.UseSsl ? "https" : "http";
var url = String.Format("{0}//{1}:{2}/jsonrpc",
protocol,
settings.Host,
settings.Port);

View File

@ -51,6 +51,9 @@ namespace NzbDrone.Core.Download.Clients.Nzbget
[FieldDefinition(6, Label = "Older Priority", Type = FieldType.Select, SelectOptions = typeof(NzbgetPriority))]
public Int32 OlderTvPriority { get; set; }
[FieldDefinition(7, Label = "Use SSL", Type = FieldType.Checkbox)]
public Boolean UseSsl { get; set; }
public ValidationResult Validate()
{
return Validator.Validate(this);