add_zone_slave.php
changeset 175 0345d21f21b0
parent 174 a17ec7de4bbb
--- 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)) {