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

gluon-core: use copy of "WAN" role list for "single" default (#2478)

Instead of using roles.wan directly as the default for roles.single,
create a copy of the table, so subsequent modifications of roles.single
don't affect roles.wan as well.

Fixes migration of Mesh-on-WAN status when no default for "single"
interfaces is set in site.conf.
parent 588502cf
No related branches found
No related tags found
No related merge requests found
......@@ -10,7 +10,7 @@ local roles = {
lan = site.interfaces.lan.default_roles({'client'}),
wan = site.interfaces.wan.default_roles({'uplink'}),
}
roles.single = site.interfaces.single.default_roles(roles.wan)
roles.single = site.interfaces.single.default_roles({unpack(roles.wan)})
-- 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.
Finish editing this message first!
Please register or to comment