diff options
author | Andreas Brodmann <andreas.brodmann@gmail.com> | 2007-11-20 22:41:17 +0000 |
---|---|---|
committer | Andreas Brodmann <andreas.brodmann@gmail.com> | 2007-11-20 22:41:17 +0000 |
commit | d65d428af973665ccd3c3392e2ea8a69b43701f1 (patch) | |
tree | 7be7d0ace1068dde26621176a9cb6133ed0eec17 /squid-controller.lua | |
parent | a6854b1bc082f83a96c10a2d3adbf0b8fe01231a (diff) | |
download | acf-squid-d65d428af973665ccd3c3392e2ea8a69b43701f1.tar.bz2 acf-squid-d65d428af973665ccd3c3392e2ea8a69b43701f1.tar.xz |
/acf/squid: save work of day
git-svn-id: svn://svn.alpinelinux.org/acf/squid/trunk@352 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'squid-controller.lua')
-rw-r--r-- | squid-controller.lua | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/squid-controller.lua b/squid-controller.lua index 3e8522f..a651d6c 100644 --- a/squid-controller.lua +++ b/squid-controller.lua @@ -6,7 +6,7 @@ module (..., package.seeall) -- We use the self.conf table because it already has prefix,controller,etc -- The redir code is defined in the application error handler (acf-controller) local list_redir = function (self) - self.conf.action = "home" + self.conf.action = "basic" self.conf.type = "redir" error (self.conf) end @@ -47,6 +47,7 @@ basic = function( self ) end service.status = self.model.get_status() + service.config = self.model.get_basic_config() return ( cfe ({ option = option, service = service }) ) end @@ -70,12 +71,12 @@ advanced = function( self ) if self.clientdata.cmd then if self.clientdata.cmd == "save" then - service.message = self.model.update_config( self.clientdata.config ) + service.message = self.model.update_adv_config( self.clientdata.config ) end end service.status = self.model.get_status() - service.config = self.model.get_config() + service.config = self.model.get_adv_config() return ( cfe ({ option = option, service = service }) ) end |