mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
- Quote the SNMP v2c community, v3 is already quoted.
- Change the snmpver to double quotes for consistency.
This commit is contained in:
@@ -776,8 +776,8 @@ function snmp_gen_auth(&$device) {
|
||||
}
|
||||
}
|
||||
else if ($device['snmpver'] === 'v2c' or $device['snmpver'] === 'v1') {
|
||||
$cmd = ' -'.$device['snmpver'];
|
||||
$cmd .= ' -c '.$device['community'];
|
||||
$cmd = " -".$device['snmpver'];
|
||||
$cmd .= " -c '".$device['community']."'";
|
||||
}
|
||||
else {
|
||||
if ($debug) {
|
||||
|
||||
Reference in New Issue
Block a user