summaryrefslogtreecommitdiffstats
path: root/openvpn-controller.lua
diff options
context:
space:
mode:
Diffstat (limited to 'openvpn-controller.lua')
-rw-r--r--openvpn-controller.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/openvpn-controller.lua b/openvpn-controller.lua
index a2926d6..3155701 100644
--- a/openvpn-controller.lua
+++ b/openvpn-controller.lua
@@ -2,6 +2,11 @@ module (..., package.seeall)
require("controllerfunctions")
+mvc = {}
+mvc.on_load = function(self, parent)
+ self.model.set_processname(string.match(self.conf.prefix, "[^/]+"))
+end
+
default_action = "status"
status = function(self)