diff options
-rw-r--r-- | dnsmasq-model.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/dnsmasq-model.lua b/dnsmasq-model.lua index d3051cf..ab2d8ff 100644 --- a/dnsmasq-model.lua +++ b/dnsmasq-model.lua @@ -259,11 +259,11 @@ end -- ################################################################################ -- PUBLIC FUNCTIONS -function get_startstop(clientdata) +function get_startstop(self, clientdata) return modelfunctions.get_startstop(processname) end -function startstop_service(startstop, action) +function startstop_service(self, startstop, action) return modelfunctions.startstop_service(startstop, action) end @@ -295,7 +295,7 @@ function getconfig() return cfe({ type="group", value=output, label="DNS Masq Config" }) end -function setconfig(config) +function setconfig(self, config) local success, config = validateconfig(config) if success then @@ -327,9 +327,9 @@ function getconfigfile() return modelfunctions.getfiledetails(configfile) end -function setconfigfile(filedetails) +function setconfigfile(self, filedetails) -- FIXME Validate - return modelfunctions.setfiledetails(filedetails, {configfile}) + return modelfunctions.setfiledetails(self, filedetails, {configfile}) end function getleases() |