add_zone_slave.php
changeset 161 0832d846bf8e
parent 126 cb06e3e29ed8
child 170 391e744a1def
--- a/add_zone_slave.php	Tue May 13 20:37:32 2008 +0000
+++ b/add_zone_slave.php	Tue May 13 20:59:32 2008 +0000
@@ -38,7 +38,7 @@
 		error(ERR_DNS_HOSTNAME);
 	} elseif (domain_exists($zone)) {
 		error(ERR_DOMAIN_EXISTS);
-	} elseif (!is_valid_ip($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)) {