From 49cd33070467ea1e7f973fad9f7fe130306048d9 Mon Sep 17 00:00:00 2001 From: kobewi Date: Sat, 28 Jun 2025 01:06:32 +0200 Subject: [PATCH] Fix EditorSettings usage in TLSContext --- modules/mbedtls/tls_context_mbedtls.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/mbedtls/tls_context_mbedtls.cpp b/modules/mbedtls/tls_context_mbedtls.cpp index 01e52efc44..06d5223af2 100644 --- a/modules/mbedtls/tls_context_mbedtls.cpp +++ b/modules/mbedtls/tls_context_mbedtls.cpp @@ -153,7 +153,7 @@ Error TLSContextMbedTLS::init_server(int p_transport, Ref p_options, #if MBEDTLS_VERSION_MAJOR >= 3 #ifdef TOOLS_ENABLED - if (Engine::get_singleton()->is_editor_hint()) { + if (EditorSettings::get_singleton()) { if (!EditorSettings::get_singleton()->get_setting("network/tls/enable_tls_v1.3").operator bool()) { mbedtls_ssl_conf_max_tls_version(&conf, MBEDTLS_SSL_VERSION_TLS1_2); } @@ -211,7 +211,7 @@ Error TLSContextMbedTLS::init_client(int p_transport, const String &p_hostname, #if MBEDTLS_VERSION_MAJOR >= 3 #ifdef TOOLS_ENABLED - if (Engine::get_singleton()->is_editor_hint()) { + if (EditorSettings::get_singleton()) { if (!EditorSettings::get_singleton()->get_setting("network/tls/enable_tls_v1.3").operator bool()) { mbedtls_ssl_conf_max_tls_version(&conf, MBEDTLS_SSL_VERSION_TLS1_2); }