Fixed: Trim spaces and empty values in Proxy Bypass List

(cherry picked from commit 846333ddf0d9da775c80d004fdb9b41e700ef359)
pull/2205/head
bakerboy448 4 months ago committed by Bogdan
parent 1b58d50b6d
commit 615193617c

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