The "get_wifi_interfaces" function is not returning the wifi interface
names. This causes the bug #14625.
Fix the "get_wifi_interfaces" function.
Signed-off-by: Nick Hainke <[email protected]>
include $(TOPDIR)/rules.mk
PKG_NAME:=prometheus-node-exporter-lua
-PKG_VERSION:=2021.01.27
+PKG_VERSION:=2021.02.15
PKG_RELEASE:=1
local status = u:call("network.wireless", "status", {})
local interfaces = {}
- for dev, dev_table in pairs(status) do
+ for _, dev_table in pairs(status) do
for _, intf in ipairs(dev_table['interfaces']) do
- table.insert(interfaces, intf['config']['ifname'])
+ table.insert(interfaces, intf['ifname'])
end
end