This commit is contained in:
redmatrix 2015-11-23 15:17:38 -08:00
parent ae1103c5a3
commit 167e754a1b
2 changed files with 2 additions and 2 deletions

View File

@ -137,7 +137,7 @@ abstract class dba_driver {
}
if(strlen($server) && ($server !== 'localhost') && ($server !== '127.0.0.1')) {
if(! dns_get_record($server, DNS_A + DNS_CNAME + DNS_PTR)) {
if((! dns_get_record($server, DNS_A + DNS_CNAME + DNS_PTR)) && (! filter_var($server, FILTER_VALIDATE_IP))) {
$this->error = sprintf( t('Cannot locate DNS info for database server \'%s\''), $server);
$this->connected = false;
$this->db = null;

View File

@ -1 +1 @@
2015-11-22.1224
2015-11-23.1225