gluon-config-mode-mesh-vpn: override Section:write() instead of Section:handle()

This commit is contained in:
Matthias Schiffer 2021-05-14 23:30:14 +02:00
parent df9fa32d58
commit 16fab561db
No known key found for this signature in database
GPG Key ID: 16EF3F64CB201D9C

View File

@ -58,8 +58,7 @@ return function(form, uci)
uci:set("gluon", "mesh_vpn", "limit_egress", data * 1000) uci:set("gluon", "mesh_vpn", "limit_egress", data * 1000)
end end
function s:handle() function s:write()
Section.handle(s)
uci:save('gluon') uci:save('gluon')
os.execute('exec /lib/gluon/mesh-vpn/update-config') os.execute('exec /lib/gluon/mesh-vpn/update-config')
end end