New: Option to use SSL to connect to nzbget

pull/6/head
Mark McDowall 11 years ago
parent d44b220fd0
commit e309f89ea1

@ -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);

@ -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);

Loading…
Cancel
Save