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

This commit is contained in:
Franco Fichtner 2018-04-26 11:19:19 +02:00
parent b6c2ec3d87
commit e9913921f1
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);
}
}