1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-21 22:05:43 -04:00

New: IPv6 support for connections/indexers/download clients

Closes #7850

(cherry picked from commit 1b90fbcf7df2c1086da4791c6491771924b1b7aa)
This commit is contained in:
Mark McDowall
2022-12-05 00:57:21 -08:00
committed by Qstick
parent 3617bef54b
commit c11f72c098
7 changed files with 24 additions and 8 deletions
@@ -214,5 +214,10 @@ namespace NzbDrone.Common.Extensions
return parsedAddress.AddressFamily == AddressFamily.InterNetwork || parsedAddress.AddressFamily == AddressFamily.InterNetworkV6;
}
public static string ToUrlHost(this string input)
{
return input.Contains(":") ? $"[{input}]" : input;
}
}
}