|
|
@ -1,3 +1,4 @@
|
|
|
|
|
|
|
|
using System;
|
|
|
|
using NzbDrone.Common.Extensions;
|
|
|
|
using NzbDrone.Common.Extensions;
|
|
|
|
|
|
|
|
|
|
|
|
namespace NzbDrone.Common.Http.Proxy
|
|
|
|
namespace NzbDrone.Common.Http.Proxy
|
|
|
@ -29,7 +30,8 @@ namespace NzbDrone.Common.Http.Proxy
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (!string.IsNullOrWhiteSpace(BypassFilter))
|
|
|
|
if (!string.IsNullOrWhiteSpace(BypassFilter))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var hostlist = BypassFilter.Split(',');
|
|
|
|
var hostlist = BypassFilter.Split(',', StringSplitOptions.RemoveEmptyEntries | StringSplitOptions.TrimEntries);
|
|
|
|
|
|
|
|
|
|
|
|
for (var i = 0; i < hostlist.Length; i++)
|
|
|
|
for (var i = 0; i < hostlist.Length; i++)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (hostlist[i].StartsWith("*"))
|
|
|
|
if (hostlist[i].StartsWith("*"))
|
|
|
@ -41,7 +43,7 @@ namespace NzbDrone.Common.Http.Proxy
|
|
|
|
return hostlist;
|
|
|
|
return hostlist;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return System.Array.Empty<string>();
|
|
|
|
return Array.Empty<string>();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|