luci-base/network.lua: fix get_interface function
* fix wrong private function call to handle section id as parameter (fix for #1687) Signed-off-by: Dirk Brenken <dev@brenken.org>
This commit is contained in:
parent
90ed4239d5
commit
87c2d95264
1 changed files with 1 additions and 1 deletions
|
@ -629,7 +629,7 @@ function get_interface(self, i)
|
|||
if _interfaces[i] or _wifi_iface(i) then
|
||||
return interface(i)
|
||||
else
|
||||
local netid = _wifi_netid_by_netname(i)
|
||||
local netid = _wifi_netid_by_sid(i)
|
||||
return netid and interface(netid)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue