refactor(streamdata): use readonly headers list in probe resolver

This commit is contained in:
Felix 2026-05-20 16:27:18 +03:00
parent 3c475352fe
commit d2c7ee7c72

View File

@ -373,7 +373,7 @@ namespace LME.JackTor.Controllers
} }
} }
private (List<HeadersModel> headers, string host) ResolveProbeTorrentServer(JackTorSettings init, string account_email) private (IReadOnlyList<HeadersModel> headers, string host) ResolveProbeTorrentServer(JackTorSettings init, string account_email)
{ {
if ((init.torrs == null || init.torrs.Length == 0) && (init.auth_torrs == null || init.auth_torrs.Count == 0)) if ((init.torrs == null || init.torrs.Length == 0) && (init.auth_torrs == null || init.auth_torrs.Count == 0))
{ {