net-mgmt/snmp: do not call does_interface_exist()

No other plugin uses it.
This commit is contained in:
Franco Fichtner 2018-04-11 22:21:47 +02:00
parent d8670b0303
commit 62fc6e47fe
2 changed files with 2 additions and 5 deletions

View file

@ -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

View file

@ -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);
}
}