luci-app-openvpn: run '/etc/init.d/openvpn reload' after commit
Signed-off-by: Martin Schiller <ms@dev.tdt.de>
This commit is contained in:
parent
7c643558a3
commit
e88a95ca29
1 changed files with 3 additions and 0 deletions
|
@ -125,5 +125,8 @@ function proto.cfgvalue(self, section)
|
|||
return val or "udp"
|
||||
end
|
||||
|
||||
function m.on_after_commit(self,map)
|
||||
require("luci.sys").call('/etc/init.d/openvpn reload')
|
||||
end
|
||||
|
||||
return m
|
||||
|
|
Loading…
Reference in a new issue