mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-08 18:54:26 -04:00
Revert "Allow valid https requests in .NET Core"
This commit is contained in:
parent
0e920a6d5f
commit
1bab76d80c
@ -59,17 +59,7 @@ namespace Emby.Server.Implementations.HttpClientManager
|
|||||||
|
|
||||||
if (!_httpClients.TryGetValue(key, out var client))
|
if (!_httpClients.TryGetValue(key, out var client))
|
||||||
{
|
{
|
||||||
var httpClientHandler = new HttpClientHandler()
|
client = new HttpClient()
|
||||||
{
|
|
||||||
ServerCertificateCustomValidationCallback = (message, cert, chain, errors) =>
|
|
||||||
{
|
|
||||||
var success = errors == System.Net.Security.SslPolicyErrors.None;
|
|
||||||
_logger.LogDebug("Validating certificate {Cert}. Success {1}", cert, success);
|
|
||||||
return success;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
client = new HttpClient(httpClientHandler)
|
|
||||||
{
|
{
|
||||||
BaseAddress = new Uri(url)
|
BaseAddress = new Uri(url)
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user