Skip to content

Commit

Permalink
lime-system ensure that wan interface gets configured
Browse files Browse the repository at this point in the history
  • Loading branch information
ilario committed Oct 4, 2024
1 parent eb19470 commit aa9161a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/lime-system/files/usr/lib/lua/lime/network.lua
Original file line number Diff line number Diff line change
Expand Up @@ -259,12 +259,14 @@ function network.scandevices()

--! With DSA, the WAN is named wan. Copying the code from the lan case.
if dev:match("^wan$") then
devices[dev] = {}
local lower_if = network._get_lower(dev)
if lower_if then
devices[lower_if] = { nobridge = true }
devices[dev] = {}
utils.log( "network.scandevices.dev_parser found WAN port %s " ..
"and marking %s as nobridge", dev, lower_if )
else
utils.log( "network.scandevices.dev_parser found WAN port %s", dev)
end
end

Expand Down

0 comments on commit aa9161a

Please sign in to comment.