You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
499 B
17 lines
499 B
using System.Diagnostics.CodeAnalysis;
|
|
using Flurl.Http.Configuration;
|
|
|
|
namespace Recyclarr.Common.Networking;
|
|
|
|
[SuppressMessage("SonarCloud", "S4830:Server certificates should be verified during SSL/TLS connections")]
|
|
public class UntrustedCertClientFactory : DefaultHttpClientFactory
|
|
{
|
|
public override HttpMessageHandler CreateMessageHandler()
|
|
{
|
|
return new HttpClientHandler
|
|
{
|
|
ServerCertificateCustomValidationCallback = (_, _, _, _) => true
|
|
};
|
|
}
|
|
}
|