ignore ssl
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user