summaryrefslogtreecommitdiffhomepage
path: root/applications
diff options
context:
space:
mode:
authorFlorian Eckert <fe@dev.tdt.de>2018-08-30 09:04:48 +0200
committerFlorian Eckert <fe@dev.tdt.de>2018-08-30 14:44:58 +0200
commit21de87a1d674461443c8c31a69a10cbcdc3a6d62 (patch)
tree78a9e77c80a03207b04dd410162e03c98be2411e /applications
parent665e062061e72cb1621a927b1508e9cc56c199a2 (diff)
luci-app-mwan3: diagnostic fix physical device lookup
Use diffrent function to get the physical interface name. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Diffstat (limited to 'applications')
-rw-r--r--applications/luci-app-mwan3/luasrc/controller/mwan3.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/applications/luci-app-mwan3/luasrc/controller/mwan3.lua b/applications/luci-app-mwan3/luasrc/controller/mwan3.lua
index 541d695ec..5fa8d8a91 100644
--- 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