gluon-core: fix setting interface default roles from site.conf (#2463)
Make the code match the docs and check_site.lua by actually looking up the "default_roles" field, not "roles".
This commit is contained in:
parent
684b4a80a0
commit
4225bd3853
@ -7,10 +7,10 @@ local util = require 'gluon.util'
|
|||||||
|
|
||||||
-- Defaults from site.conf
|
-- Defaults from site.conf
|
||||||
local roles = {
|
local roles = {
|
||||||
lan = site.interfaces.lan.roles({'client'}),
|
lan = site.interfaces.lan.default_roles({'client'}),
|
||||||
wan = site.interfaces.wan.roles({'uplink'}),
|
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)
|
-- Migration of Mesh-on-WAN/LAN setting from Gluon 2021.1 and older (to be removed in 2024)
|
||||||
--
|
--
|
||||||
|
Loading…
Reference in New Issue
Block a user