Allow leaving Custom secondary DNS server field empty

This commit is contained in:
DL6ER
2016-12-13 17:22:58 +01:00
parent ea1645f562
commit 6e8c1bf128
+1 -1
View File
@@ -74,7 +74,7 @@ function validDomain($domain_name)
}
// Validate secondary IP
if (!validIP($secondaryIP))
if (!validIP($secondaryIP) && strlen($secondaryIP) > 0)
{
$error .= "Secondary IP (".$secondaryIP.") is invalid!<br>";
}