From b0155fe37b318c8df3a3c830ecc39b8af9569eb9 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Thu, 24 May 2018 01:31:03 -0400 Subject: [PATCH] Remove obsolete DNS test from include/dba --- include/dba.php | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/include/dba.php b/include/dba.php index 1d3b432141..e645755386 100644 --- a/include/dba.php +++ b/include/dba.php @@ -52,16 +52,6 @@ class dba { return false; } - if ($a->mode == App::MODE_INSTALL) { - // server has to be a non-empty string that is not 'localhost' and not an IP - if (strlen($server) && ($server !== 'localhost') && filter_var($server, FILTER_VALIDATE_IP) === false) { - if (! dns_get_record($server, DNS_A + DNS_CNAME)) { - self::$error = L10n::t('Cannot locate DNS info for database server \'%s\'', $server); - return false; - } - } - } - if (class_exists('\PDO') && in_array('mysql', PDO::getAvailableDrivers())) { self::$driver = 'pdo'; $connect = "mysql:host=".$server.";dbname=".$db;