mirror of
https://github.com/Sonarr/Sonarr
synced 2026-02-14 18:52:01 +01:00
Fixed: Trim spaces and empty values in Proxy Bypass List
This commit is contained in:
parent
dde28cbd7e
commit
846333ddf0
1 changed files with 2 additions and 1 deletions
|
|
@ -30,7 +30,8 @@ public string[] BypassListAsArray
|
|||
{
|
||||
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("*"))
|
||||
|
|
|
|||
Loading…
Reference in a new issue