diff options
author | Dirk Brenken <dev@brenken.org> | 2018-03-31 07:06:52 +0200 |
---|---|---|
committer | Dirk Brenken <dev@brenken.org> | 2018-03-31 07:11:02 +0200 |
commit | 87c2d9526464d111c3b7717e8dba94aaec67e74a (patch) | |
tree | d774deddae345a9ad1c1efd0e25bcfb74fe4da51 /modules/luci-base/luasrc | |
parent | 90ed4239d5ad07b0f787b67c51ca820f15da3873 (diff) |
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>
Diffstat (limited to 'modules/luci-base/luasrc')
-rw-r--r-- | modules/luci-base/luasrc/model/network.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/luci-base/luasrc/model/network.lua b/modules/luci-base/luasrc/model/network.lua index 056fc67b14..dfe818bcc7 100644 --- a/modules/luci-base/luasrc/model/network.lua +++ b/modules/luci-base/luasrc/model/network.lua @@ -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 |