diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2012-06-29 11:59:38 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2012-06-29 11:59:38 +0000 |
commit | c098c59fd186984e06ff84254289829fe99d5c55 (patch) | |
tree | efd0f445bf9c74aa11c906902921aebdad3cb451 /libs/core | |
parent | 725acfbd1ce55eb4d9fb480030ce26c8689a9a26 (diff) |
libs/core: only consider enabled routes when finding wan interface
Diffstat (limited to 'libs/core')
-rw-r--r-- | libs/core/luasrc/model/network.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/core/luasrc/model/network.lua b/libs/core/luasrc/model/network.lua index a0ff58124..df6bf1e3d 100644 --- 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 |