diff --git a/Pilz.Updating.Client/UpdateClient.cs b/Pilz.Updating.Client/UpdateClient.cs index 1e81598..98e32dd 100644 --- a/Pilz.Updating.Client/UpdateClient.cs +++ b/Pilz.Updating.Client/UpdateClient.cs @@ -16,7 +16,11 @@ public class UpdateClient(string updateUrl, AppVersion currentVersion, AppChanne // P r o p e r t i e s - public HttpClient WebClient { get; private set; } = new(); +#if NET8_0_OR_GREATER + public HttpClient WebClient { get; set; } = new(new HttpClientHandler { ServerCertificateCustomValidationCallback = delegate { return true; } }); +#else + public HttpClient WebClient { get; set; } = new(); +#endif public string UpdateUrl { get; private set; } = updateUrl; public AppVersion CurrentVersion { get; private set; } = currentVersion; public AppChannel MinimumChannel { get; set; } = minimumChannel;