aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Integrations/Webhooks/WebhookService.cs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/slskd/Integrations/Webhooks/WebhookService.cs b/src/slskd/Integrations/Webhooks/WebhookService.cs
index 08dfd593..62f097b7 100644
--- a/src/slskd/Integrations/Webhooks/WebhookService.cs
+++ b/src/slskd/Integrations/Webhooks/WebhookService.cs
@@ -68,7 +68,11 @@ public class WebhookService
_ = Task.Run(async () =>
{
var call = webhook.Value.Call;
- using var http = HttpClientFactory.CreateClient();
+
+ using var http = call.IgnoreCertificateErrors
+ ? HttpClientFactory.CreateClient(Constants.IgnoreCertificateErrors)
+ : HttpClientFactory.CreateClient();
+
http.Timeout = TimeSpan.FromMilliseconds(webhook.Value.Timeout);
foreach (var header in call.Headers)