libs/sys: disregard ::/0 routes on "lo" in luci.sys.net.defaultroute6()
This commit is contained in:
parent
945076c895
commit
9836e949a5
1 changed files with 3 additions and 1 deletions
|
@ -302,7 +302,9 @@ function net.defaultroute6()
|
|||
local route
|
||||
|
||||
net.routes6(function(rt)
|
||||
if rt.dest:prefix() == 0 and (not route or route.metric > rt.metric) then
|
||||
if rt.dest:prefix() == 0 and rt.device ~= "lo" and
|
||||
(not route or route.metric > rt.metric)
|
||||
then
|
||||
route = rt
|
||||
end
|
||||
end)
|
||||
|
|
Loading…
Reference in a new issue