git.99rst.org
/
openwrt-luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
665e062
)
luci-app-mwan3: diagnostic fix physical device lookup
author
Florian Eckert
<redacted>
Thu, 30 Aug 2018 07:04:48 +0000
(09:04 +0200)
committer
Florian Eckert
<redacted>
Thu, 30 Aug 2018 12:44:58 +0000
(14:44 +0200)
Use diffrent function to get the physical interface name.
Signed-off-by: Florian Eckert <redacted>
applications/luci-app-mwan3/luasrc/controller/mwan3.lua
patch
|
blob
|
history
diff --git
a/applications/luci-app-mwan3/luasrc/controller/mwan3.lua
b/applications/luci-app-mwan3/luasrc/controller/mwan3.lua
index 541d695ecfe04a710ef41ba7e232dca92673b7d0..5fa8d8a9194e6e65e8ecb6417a7a45192312ed00 100644
(file)
--- a/
applications/luci-app-mwan3/luasrc/controller/mwan3.lua
+++ b/
applications/luci-app-mwan3/luasrc/controller/mwan3.lua
@@
-144,7
+144,8
@@
function diagnosticsData(interface, task)
local uci = require "luci.model.uci".cursor(nil, "/var/state")
local nw = require "luci.model.network".init()
local network = nw:get_network(interface)
- local device = network and network:ifname()
+ local device = network and network:get_interface()
+ device = device:name()
luci.http.prepare_content("text/plain")
if device then
git clone https://git.99rst.org/PROJECT