From 535041bbd1c3db315f9cbdf8d5046419fac9b6ae Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Thu, 25 Sep 2008 17:42:43 +0000 Subject: Removed split and join libraries. Join is handled by table.concat. Split is handled by format.string_to_table. git-svn-id: svn://svn.alpinelinux.org/acf/openvpn/trunk@1515 ab2d0c66-481e-0410-8bed-d214d4d58bed --- openvpn-model.lua | 4 +--- 1 file changed, 1 insertion(+), 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 -- cgit v1.2.3