Allow omitting host name

This commit is contained in:
DL6ER
2017-01-25 10:13:51 +01:00
parent 3d8246e4c3
commit 1eb8f32755

View File

@@ -337,7 +337,7 @@ function validMAC($mac_addr)
{
$error .= "IP address (".htmlentities($ip).") is invalid!<br>";
}
if(!validDomain($hostname))
if(!validDomain($hostname) && strlen($hostname) > 0)
{
$error .= "Host name (".htmlentities($hostname).") is invalid!<br>";
}