Skip to content
Snippets Groups Projects
Unverified Commit 7351fb5d authored by Matthias Schiffer's avatar Matthias Schiffer
Browse files

gluon-web-network: fix reading "legacy" mode settings from UCI

Fixes #1269
parent 87c741b4
No related branches found
No related tags found
No related merge requests found
......@@ -84,7 +84,7 @@ function mesh_wan:write(data)
end
local mesh_wan_legacy = s:option(Flag, "mesh_wan_legacy", translate("Use legacy mode for WAN meshing"))
mesh_wan_legacy.default = mesh_wan.default and uci:get_bool("network", "mesh_wan_legacy", "auto")
mesh_wan_legacy.default = mesh_wan.default and uci:get_bool("network", "mesh_wan", "legacy")
mesh_wan_legacy:depends(mesh_wan, true)
function mesh_wan_legacy:write(data)
......@@ -114,7 +114,7 @@ if sysconfig.lan_ifname then
end
local mesh_lan_legacy = s:option(Flag, "mesh_lan_legacy", translate("Use legacy mode for LAN meshing"))
mesh_lan_legacy.default = mesh_lan.default and uci:get_bool("network", "mesh_lan_legacy", "auto")
mesh_lan_legacy.default = mesh_lan.default and uci:get_bool("network", "mesh_lan", "legacy")
mesh_lan_legacy:depends(mesh_lan, true)
function mesh_lan_legacy:write(data)
......
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