mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fixed typo in variable name
This commit is contained in:
@@ -276,7 +276,7 @@ function addHost($host, $snmpver, $port = '161', $transport = 'udp', $quiet = '0
|
||||
if (ip_exists($ip) === false) {
|
||||
// Test reachability
|
||||
$address_family = snmpTransportToAddressFamily($transport);
|
||||
if ($force_add == 1 || isPingable($host, $addressFamily)) {
|
||||
if ($force_add == 1 || isPingable($host, $address_family)) {
|
||||
if (empty($snmpver)) {
|
||||
// Try SNMPv2c
|
||||
$snmpver = 'v2c';
|
||||
|
Reference in New Issue
Block a user