Skip to content
Snippets Groups Projects
Unverified Commit 4225bd38 authored by Matthias Schiffer's avatar Matthias Schiffer Committed by GitHub
Browse files

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".
parent 684b4a80
No related branches found
No related tags found
No related merge requests found
...@@ -7,10 +7,10 @@ local util = require 'gluon.util' ...@@ -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)
-- --
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment