diff options
| author | Bond-009 <bond.009@outlook.com> | 2026-05-17 14:07:43 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-05-17 14:07:43 +0200 |
| commit | f14ab37bf5385386e0295aba44606b38b6d90aa5 (patch) | |
| tree | a71d4725cf2a03e99df52af8be2ac92472e4a0cb /MediaBrowser.Common/Net | |
| parent | 2f8bf92fb80c8bf8568e8b22aba31a839b8862d3 (diff) | |
| parent | 1751c5b45d7022f662b04b565c4f70a7ce2329d1 (diff) | |
Misc fixes (#16837)
* Order chapter response by start time
* Properly handle cancellation in MediaSegmentManager
* Prevent unecessary log spam in NetworkUtils
* Fixup
Diffstat (limited to 'MediaBrowser.Common/Net')
| -rw-r--r-- | MediaBrowser.Common/Net/NetworkUtils.cs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/MediaBrowser.Common/Net/NetworkUtils.cs b/MediaBrowser.Common/Net/NetworkUtils.cs index 71539b8b78..25a1022d4e 100644 --- a/MediaBrowser.Common/Net/NetworkUtils.cs +++ b/MediaBrowser.Common/Net/NetworkUtils.cs @@ -180,9 +180,16 @@ public static partial class NetworkUtils List<IPData>? tmpResult = null; for (int a = 0; a < values.Length; a++) { + // Skip entries whose '!' polarity doesn't match this pass + var trimmed = values[a].AsSpan().Trim(); + if (trimmed.StartsWith('!') != negated) + { + continue; + } + if (TryParseToSubnet(values[a], out var innerResult, negated)) { - (tmpResult ??= new()).Add(innerResult); + (tmpResult ??= []).Add(innerResult); } else { |
