From ac5c9d051ff7821115c0900ee38618414919b212 Mon Sep 17 00:00:00 2001 From: Florian Mortgat <50440633+atm-florianm@users.noreply.github.com> Date: Tue, 24 Oct 2023 13:14:39 +0200 Subject: [PATCH] NEW: hidden conf to disable use of dns_get_record (which can become unresponsive) (#26339) --- htdocs/admin/mails.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/admin/mails.php b/htdocs/admin/mails.php index 8efd245c3ad6b..25743ec86b2c1 100644 --- a/htdocs/admin/mails.php +++ b/htdocs/admin/mails.php @@ -991,7 +991,7 @@ function change_smtp_auth_method() { } $companyemail = getDolGlobalString('MAIN_INFO_SOCIETE_MAIL'); $dnsinfo = false; - if (!empty($companyemail) && function_exists('dns_get_record')) { + if (!empty($companyemail) && function_exists('dns_get_record') && empty($conf->global->MAIN_DISABLE_DNS_GET_RECORD)) { $arrayofemailparts = explode('@', $companyemail); if (count($arrayofemailparts) == 2) { $domain = $arrayofemailparts[1];