diff options
author | Ted Trask <ttrask01@yahoo.com> | 2008-09-25 17:42:43 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2008-09-25 17:42:43 +0000 |
commit | 535041bbd1c3db315f9cbdf8d5046419fac9b6ae (patch) | |
tree | 54876db521a804bbb1864c2f929097a4333130aa /openvpn-model.lua | |
parent | 429e44e4c8fb319a2b5f5f9b521b568dba5280c8 (diff) | |
download | acf-openvpn-535041bbd1c3db315f9cbdf8d5046419fac9b6ae.tar.bz2 acf-openvpn-535041bbd1c3db315f9cbdf8d5046419fac9b6ae.tar.xz |
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
Diffstat (limited to 'openvpn-model.lua')
-rw-r--r-- | openvpn-model.lua | 4 |
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 |