mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix typo
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user