mirror of
https://github.com/pi-hole/web.git
synced 2025-12-24 12:48:29 +00:00
Allow omitting host name
This commit is contained in:
@@ -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>";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user