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:
Dirk Brenken 2018-03-31 07:06:52 +02:00
parent 90ed4239d5
commit 87c2d95264

View file

@ -629,7 +629,7 @@ function get_interface(self, i)
if _interfaces[i] or _wifi_iface(i) then if _interfaces[i] or _wifi_iface(i) then
return interface(i) return interface(i)
else else
local netid = _wifi_netid_by_netname(i) local netid = _wifi_netid_by_sid(i)
return netid and interface(netid) return netid and interface(netid)
end end
end end