ignore ssl

This commit is contained in:
Pascal
2025-12-05 10:27:23 +01:00
parent 610a5fa3ec
commit 478a2a1fa7

View File

@@ -16,7 +16,11 @@ public class UpdateClient(string updateUrl, AppVersion currentVersion, AppChanne
// P r o p e r t i e s // 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 string UpdateUrl { get; private set; } = updateUrl;
public AppVersion CurrentVersion { get; private set; } = currentVersion; public AppVersion CurrentVersion { get; private set; } = currentVersion;
public AppChannel MinimumChannel { get; set; } = minimumChannel; public AppChannel MinimumChannel { get; set; } = minimumChannel;