diff options
-rw-r--r-- | openvpn-controller.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/openvpn-controller.lua b/openvpn-controller.lua index 7ebfef9..85deb28 100644 --- a/openvpn-controller.lua +++ b/openvpn-controller.lua @@ -39,5 +39,11 @@ end function startstop(self) local data = self.model.startstop_service(clientdata.action,clientdata.service) data.service = clientdata.service + if (data) and (data.value) and (data.value.result) and (data.value.result.value) then + redirect(self, "listconfigs") + end + if not (clientdata.service) then + redirect(self, "listconfigs") + end return data end |