mirror of
https://github.com/opnsense/plugins.git
synced 2026-06-08 16:34:18 -04:00
net-mgmt/snmp: do not use does_interface_exist()
This commit is contained in:
parent
b6c2ec3d87
commit
e9913921f1
2 changed files with 2 additions and 5 deletions
|
|
@ -1,6 +1,5 @@
|
|||
PLUGIN_NAME= snmp
|
||||
PLUGIN_VERSION= 1.1
|
||||
PLUGIN_REVISION= 1
|
||||
PLUGIN_VERSION= 1.2
|
||||
PLUGIN_DEPENDS= bsnmp-regex bsnmp-ucd
|
||||
PLUGIN_COMMENT= SNMP Server via bsnmpd
|
||||
PLUGIN_MAINTAINER= franco@opnsense.org
|
||||
|
|
|
|||
|
|
@ -132,9 +132,7 @@ EOD;
|
|||
$bind_to_ip = $config['snmpd']['bindip'];
|
||||
} else {
|
||||
$if = get_real_interface($config['snmpd']['bindip']);
|
||||
if (does_interface_exist($if)) {
|
||||
$bind_to_ip = find_interface_ip($if);
|
||||
}
|
||||
$bind_to_ip = find_interface_ip($if);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue