mirror of
https://github.com/openwrt/luci.git
synced 2026-08-29 08:31:46 +04:00
libs/core: only consider enabled routes when finding wan interface
This commit is contained in:
@@ -594,7 +594,7 @@ function get_status_by_route(self, addr, mask)
|
||||
if s and s.route then
|
||||
local rt
|
||||
for _, rt in ipairs(s.route) do
|
||||
if rt.target == addr and rt.mask == mask then
|
||||
if rt.enabled and rt.target == addr and rt.mask == mask then
|
||||
return net, s
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user