summaryrefslogtreecommitdiffstats
path: root/dnsmasq-model.lua
diff options
context:
space:
mode:
Diffstat (limited to 'dnsmasq-model.lua')
-rw-r--r--dnsmasq-model.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/dnsmasq-model.lua b/dnsmasq-model.lua
index dbd600a..519fa89 100644
--- a/dnsmasq-model.lua
+++ b/dnsmasq-model.lua
@@ -10,6 +10,7 @@ require("validator")
local configfile = "/etc/dnsmasq.conf"
local processname = "dnsmasq"
local packagename = "dnsmasq"
+local leasefile = "/var/lib/misc/dnsmasq.leases"
-- ################################################################################
-- LOCAL FUNCTIONS
@@ -231,3 +232,6 @@ function setconfigfile(filedetails)
return modelfunctions.setfiledetails(filedetails, {configfile})
end
+function getleases()
+ return modelfunctions.getfiledetails(leasefile)
+end