libs/core: only consider enabled routes when finding wan interface

remotes/tags/0.11.0
Jo-Philipp Wich 2012-06-29 11:59:38 +00:00
parent 725acfbd1c
commit c098c59fd1
1 changed files with 1 additions and 1 deletions

View File

@ -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