1
0
Fork 0
mirror of https://github.com/Sonarr/Sonarr synced 2024-12-22 07:43:01 +00:00

Fixed: Trim spaces and empty values in Proxy Bypass List

This commit is contained in:
bakerboy448 2024-08-25 19:24:16 -05:00 committed by GitHub
parent dde28cbd7e
commit 846333ddf0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -30,7 +30,8 @@ namespace NzbDrone.Common.Http.Proxy
{
if (!string.IsNullOrWhiteSpace(BypassFilter))
{
var hostlist = BypassFilter.Split(',');
var hostlist = BypassFilter.Split(',', StringSplitOptions.RemoveEmptyEntries | StringSplitOptions.TrimEntries);
for (var i = 0; i < hostlist.Length; i++)
{
if (hostlist[i].StartsWith("*"))