Skip to content

Commit eaa5b1f

Browse files
committed
Merge pull request #108060 from KoBeWi/project_manager_without_a_hint
Fix EditorSettings usage in TLSContext
2 parents 25525bc + 49cd330 commit eaa5b1f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/mbedtls/tls_context_mbedtls.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ Error TLSContextMbedTLS::init_server(int p_transport, Ref<TLSOptions> p_options,
153153

154154
#if MBEDTLS_VERSION_MAJOR >= 3
155155
#ifdef TOOLS_ENABLED
156-
if (Engine::get_singleton()->is_editor_hint()) {
156+
if (EditorSettings::get_singleton()) {
157157
if (!EditorSettings::get_singleton()->get_setting("network/tls/enable_tls_v1.3").operator bool()) {
158158
mbedtls_ssl_conf_max_tls_version(&conf, MBEDTLS_SSL_VERSION_TLS1_2);
159159
}
@@ -211,7 +211,7 @@ Error TLSContextMbedTLS::init_client(int p_transport, const String &p_hostname,
211211

212212
#if MBEDTLS_VERSION_MAJOR >= 3
213213
#ifdef TOOLS_ENABLED
214-
if (Engine::get_singleton()->is_editor_hint()) {
214+
if (EditorSettings::get_singleton()) {
215215
if (!EditorSettings::get_singleton()->get_setting("network/tls/enable_tls_v1.3").operator bool()) {
216216
mbedtls_ssl_conf_max_tls_version(&conf, MBEDTLS_SSL_VERSION_TLS1_2);
217217
}

0 commit comments

Comments
 (0)