mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
cycle all configured communities on addhost, remove dead code, minor optimisation on isdomainresolves
git-svn-id: http://www.observium.org/svn/observer/trunk@1933 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -528,7 +528,7 @@ function createHost($host, $community, $snmpver, $port = 161, $transport = 'udp'
|
||||
|
||||
function isDomainResolves($domain)
|
||||
{
|
||||
return (gethostbyname($domain) != $domain | count(dns_get_record($domain)) != 0);
|
||||
return (gethostbyname($domain) != $domain || count(dns_get_record($domain)) != 0);
|
||||
}
|
||||
|
||||
function hoststatus($id)
|
||||
|
Reference in New Issue
Block a user