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
1 changed files with 1 additions and 2 deletions

View File

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