summaryrefslogtreecommitdiffstats
path: root/openvpn-model.lua
diff options
context:
space:
mode:
Diffstat (limited to 'openvpn-model.lua')
-rw-r--r--openvpn-model.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/openvpn-model.lua b/openvpn-model.lua
index aefadff..baf3336 100644
--- a/openvpn-model.lua
+++ b/openvpn-model.lua
@@ -56,7 +56,6 @@ end
local is_running = function( process, parameters )
--- local strsplit = require("split")
local retval = ""
-- local tst = ""
-- local pidofsx, error = io.popen("pidof " .. process ,r)
@@ -137,7 +136,6 @@ function clientlist( self, path )
local f = ""
local clientlst = nil
local routinglst = nil
- local strsplit = require("split")
if ( path ) then
config = config_content ( path )
end
@@ -145,7 +143,7 @@ function clientlist( self, path )
local f = fs.read_file_as_array( config.status )
if ( f ) then
for k,v in ipairs(f) do
- local col = strsplit(",", v)
+ local col = format.string_to_table(v, ",")
if ( col[1] == "ROUTING TABLE" ) or ( col[1] == "GLOBAL STATS" ) then
clientlst = nil
routinglst = nil