mirror of https://github.com/Jackett/Jackett
Use custom certificate validation handler for httpclient2netcore
https://github.com/Jackett/Jackett/issues/5172
This commit is contained in:
parent
d7c09e62bd
commit
ec985a2318
|
@ -130,6 +130,9 @@ namespace Jackett.Common.Utils.Clients
|
||||||
AutomaticDecompression = DecompressionMethods.GZip | DecompressionMethods.Deflate
|
AutomaticDecompression = DecompressionMethods.GZip | DecompressionMethods.Deflate
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// custom certificate validation handler (netcore version)
|
||||||
|
clientHandlr.ServerCertificateCustomValidationCallback = ValidateCertificate;
|
||||||
|
|
||||||
clearanceHandlr.InnerHandler = clientHandlr;
|
clearanceHandlr.InnerHandler = clientHandlr;
|
||||||
client = new HttpClient(clearanceHandlr);
|
client = new HttpClient(clearanceHandlr);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue