diff options
Diffstat (limited to 'src/usr/local/www/diag_dns.php')
-rw-r--r-- | src/usr/local/www/diag_dns.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/usr/local/www/diag_dns.php b/src/usr/local/www/diag_dns.php index 33338f8..703d115 100644 --- a/src/usr/local/www/diag_dns.php +++ b/src/usr/local/www/diag_dns.php @@ -133,7 +133,7 @@ if ($_POST) { do_input_validation($_POST, $reqdfields, $reqdfieldsn, $input_errors); - if (!is_hostname(rtrim($host, '.')) && !is_ipaddr($checkhost)) { + if (!is_hostname(rtrim($host, '.')) && !is_ipaddr($host)) { $input_errors[] = gettext("Host must be a valid hostname or IP address."); } else { // Test resolution speed of each DNS server. |