Skip to content

Commit

Permalink
gluon-core: fix setting interface default roles from site.conf (#2463)
Browse files Browse the repository at this point in the history
Make the code match the docs and check_site.lua by actually looking up
the "default_roles" field, not "roles".
  • Loading branch information
neocturne authored Apr 12, 2022
1 parent 684b4a8 commit 4225bd3
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ local util = require 'gluon.util'

-- Defaults from site.conf
local roles = {
lan = site.interfaces.lan.roles({'client'}),
wan = site.interfaces.wan.roles({'uplink'}),
lan = site.interfaces.lan.default_roles({'client'}),
wan = site.interfaces.wan.default_roles({'uplink'}),
}
roles.single = site.interfaces.single.roles(roles.wan)
roles.single = site.interfaces.single.default_roles(roles.wan)

-- Migration of Mesh-on-WAN/LAN setting from Gluon 2021.1 and older (to be removed in 2024)
--
Expand Down

0 comments on commit 4225bd3

Please sign in to comment.