From b5f38f6a30beb5e6c5541c9a12622d7bb5bb6383 Mon Sep 17 00:00:00 2001 From: bohdan-s Date: Sat, 21 Jun 2014 08:06:28 -0400 Subject: [PATCH] Fix typo --- includes/functions.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/includes/functions.php b/includes/functions.php index 38932d516..4ab9d9d83 100755 --- a/includes/functions.php +++ b/includes/functions.php @@ -260,8 +260,7 @@ function addHost($host, $snmpver, $port = '161', $transport = 'udp') // Test Database Exists if (dbFetchCell("SELECT COUNT(*) FROM `devices` WHERE `hostname` = ?", array($host)) == '0') { - // Test DNS lookup - //if (gethostbyname($host) != $host) + // Test if IP or Hostname if (!(inet_pton($host))) { // Test reachability