diff --git a/php/savesettings.php b/php/savesettings.php index 022a9e54..df105320 100644 --- a/php/savesettings.php +++ b/php/savesettings.php @@ -135,9 +135,9 @@ function validDomain($domain_name) $first = true; foreach($clients as $client) { - if(!validDomain($client)) + if(!validIP($client)) { - $error .= "Top Clients entry ".$client." is invalid! "; + $error .= "Top Clients entry ".$client." is invalid (use only IP addresses)! "; break; } if(!$first) diff --git a/settings.php b/settings.php index dd20a5f9..7ad7373f 100644 --- a/settings.php +++ b/settings.php @@ -253,7 +253,6 @@