mirror of
https://github.com/openwrt/luci.git
synced 2026-04-15 19:01:56 +00:00
luci-app-mwan3: fix aliased interfaces (@wan6)
This commit is contained in:
@@ -138,10 +138,12 @@ function diagnosticsData(interface, task)
|
||||
local number = getInterfaceNumber(interface)
|
||||
|
||||
local uci = require "luci.model.uci".cursor(nil, "/var/state")
|
||||
local device = uci:get("network", interface, "ifname")
|
||||
local nw = require "luci.model.network".init()
|
||||
local network = nw:get_network(interface)
|
||||
local device = network and network:ifname()
|
||||
|
||||
luci.http.prepare_content("text/plain")
|
||||
if device ~= "" then
|
||||
if device then
|
||||
if task == "ping_gateway" then
|
||||
local gateway = get_gateway(interface)
|
||||
if gateway ~= nil then
|
||||
|
||||
Reference in New Issue
Block a user