Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

官方最新openwrt的luci点击打开显示以下问题 !!!无法使用!!! #7

Open
zxlhhyccc opened this issue Feb 25, 2020 · 1 comment

Comments

@zxlhhyccc
Copy link

Failed to execute cbi dispatcher target for entry '/admin/network/qos_gargoyle/global'.
The called action terminated with an exception:
/usr/lib/lua/luci/model/qos_gargoyle.lua:30: attempt to call method 'get_wannet' (a nil value)
stack traceback:
/usr/lib/lua/luci/model/qos_gargoyle.lua:30: in function 'get_wan'
/usr/lib/lua/luci/model/cbi/qos_gargoyle/global.lua:107: in function 'func'
/usr/lib/lua/luci/cbi.lua:66: in function 'load'
/usr/lib/lua/luci/dispatcher.lua:943: in function </usr/lib/lua/luci/dispatcher.lua:937>

@fuqiang03
Copy link

fuqiang03 commented Feb 27, 2020

QQ截图20200227143458

function @get_wan()
local net = require "luci.model.network".init()
local wan_nets = net:get_wan_networks()
return wan_nets and #wan_nets > 0 and wan_nets[1]
end

image
借你的空间
这个怎么办

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants