Skip to content

Commit

Permalink
NEW: hidden conf to disable use of dns_get_record (which can become u…
Browse files Browse the repository at this point in the history
…nresponsive) (#26339)
  • Loading branch information
atm-florianm authored Oct 24, 2023
1 parent f7d77cb commit ac5c9d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/admin/mails.php
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit ac5c9d0

Please sign in to comment.