Merge pull request #1709 from dibdot/get_interface-fix
luci-base/network.lua: fix get_interface function
This commit is contained in:
commit
ac2210376d
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