Fixed: Trim spaces and empty values in Proxy Bypass List

pull/7140/head
bakerboy448 6 months ago committed by GitHub
parent dde28cbd7e
commit 846333ddf0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -30,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("*"))

Loading…
Cancel
Save