Fix disable tls setting

This commit is contained in:
crschnick
2025-12-31 03:44:26 +00:00
parent a1d3218116
commit 4feeeae2d9
2 changed files with 5 additions and 1 deletions
@@ -435,6 +435,10 @@ public final class AppPrefs {
private AppPrefs() {}
public ObservableValue<Boolean> disableApiHttpsTlsCheck() {
return disableApiHttpsTlsCheck;
}
public ObservableValue<VaultAuthentication> vaultAuthentication() {
return vaultAuthentication;
}
@@ -18,7 +18,7 @@ public class HttpHelper {
var builder = HttpClient.newBuilder();
builder.version(HttpClient.Version.HTTP_1_1);
builder.followRedirects(HttpClient.Redirect.NORMAL);
if (AppPrefs.get() != null && AppPrefs.get().disableApiAuthentication().get()) {
if (AppPrefs.get() != null && AppPrefs.get().disableApiHttpsTlsCheck().getValue()) {
var sslContext = SSLContext.getInstance("TLS");
var trustManager = new X509TrustManager() {
@Override