summaryrefslogtreecommitdiffstats
path: root/dnscache-model.lua
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2016-08-10 14:59:48 +0000
committerTed Trask <ttrask01@yahoo.com>2016-08-10 14:59:48 +0000
commit67e462c9e1ce8d4169ad3d491352d8c47ac8840a (patch)
tree6f16d8fd0c7f8ed2f43fe25e98540e993083d0ae /dnscache-model.lua
parent9ad1da375ba30c97ceb1346b987920964aa42728 (diff)
downloadacf-dnscache-67e462c9e1ce8d4169ad3d491352d8c47ac8840a.tar.bz2
acf-dnscache-67e462c9e1ce8d4169ad3d491352d8c47ac8840a.tar.xz
Remove trailing whitespaceHEADmaster
Diffstat (limited to 'dnscache-model.lua')
-rw-r--r--dnscache-model.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/dnscache-model.lua b/dnscache-model.lua
index 12bd5f7..705409c 100644
--- a/dnscache-model.lua
+++ b/dnscache-model.lua
@@ -62,7 +62,7 @@ end
function mymodule.get_startstop(self, clientdata)
return modelfunctions.get_startstop(processname)
end
-
+
function mymodule.startstop_service(self, startstop, action)
return modelfunctions.startstop_service(startstop, action)
end
@@ -96,7 +96,7 @@ function mymodule.setconfig(self, config)
else
file = format.update_ini_file(file,"","FORWARDONLY","")
end
- fs.write_file(configfile, file)
+ fs.write_file(configfile, file)
else
config.errtxt = "Failed to set config"
end
@@ -142,7 +142,7 @@ function mymodule.setIPs(self, iplist)
end
if not iplist.errtxt then
local currentIPlist = mymodule.getIPs()
- for i,name in ipairs(currentIPlist.value.iplist.value) do
+ for i,name in ipairs(currentIPlist.value.iplist.value) do
if reverseIPs[name] then
reverseIPs[name] = nil
else
@@ -215,7 +215,7 @@ end
function mymodule.setDomain(self, domain)
local success, domain = validatedomain(domain)
if success then
- fs.write_file(baseurl.."servers/"..domain.value.domain.value,
+ fs.write_file(baseurl.."servers/"..domain.value.domain.value,
table.concat(domain.value.iplist.value, "\n") )
else
domain.errtxt = "Failed to save domain"