author | rejo |
Thu, 29 May 2008 20:27:46 +0000 | |
changeset 175 | 0345d21f21b0 |
parent 174 | a17ec7de4bbb |
child 176 | 18905ae8cca3 |
--- a/add_zone_slave.php Fri May 23 21:52:08 2008 +0000 +++ b/add_zone_slave.php Thu May 29 20:27:46 2008 +0000 @@ -38,7 +38,7 @@ error(ERR_DNS_HOSTNAME); } elseif (domain_exists($zone)) { error(ERR_DOMAIN_EXISTS); - } elseif (!is_valid_ipv4($master) || !is_valid_ipv6($master)) { + } elseif (!is_valid_ipv4($master) && !is_valid_ipv6($master)) { error(ERR_DNS_IP); } else { if(add_domain($zone, $owner, $webip, $mailip, $empty, $type, $master)) {