From: Florian Eckert Date: Thu, 30 Aug 2018 07:04:48 +0000 (+0200) Subject: luci-app-mwan3: diagnostic fix physical device lookup X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=21de87a1d674461443c8c31a69a10cbcdc3a6d62;p=project%2Fluci.git luci-app-mwan3: diagnostic fix physical device lookup Use diffrent function to get the physical interface name. Signed-off-by: Florian Eckert --- diff --git a/applications/luci-app-mwan3/luasrc/controller/mwan3.lua b/applications/luci-app-mwan3/luasrc/controller/mwan3.lua index 541d695ecf..5fa8d8a919 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