projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
libs/core: only consider enabled routes when finding wan interface
[project/luci.git]
/
libs
/
core
/
luasrc
/
model
/
network.lua
diff --git
a/libs/core/luasrc/model/network.lua
b/libs/core/luasrc/model/network.lua
index a0ff581249bb33aa95c7d7cf06049086f8aaaf07..df6bf1e3df00c19f68d1f1de0c9c219fc3214625 100644
(file)
--- a/
libs/core/luasrc/model/network.lua
+++ b/
libs/core/luasrc/model/network.lua
@@
-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