]> git.mxchange.org Git - friendica.git/commitdiff
Remove obsolete DNS test from include/dba
authorHypolite Petovan <mrpetovan@gmail.com>
Thu, 24 May 2018 05:31:03 +0000 (01:31 -0400)
committerHypolite Petovan <mrpetovan@gmail.com>
Thu, 24 May 2018 05:31:03 +0000 (01:31 -0400)
include/dba.php

index 1d3b432141d525e015539b5b3a6864f5153749ca..e645755386a830aebd77d90bf2dd3d733ad2ec53 100644 (file)
@@ -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;