summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2016-08-10 17:46:29 +0000
committerTed Trask <ttrask01@yahoo.com>2016-08-10 17:46:29 +0000
commit4ecd5d55f764944c9b92d942a5eae5719d633a50 (patch)
treef831eeb886c2940935ebc1e38752a20ddd82a01d
parent3a6b48e8d9f6fc33ed5772ec28f33daac5b25fa6 (diff)
downloadacf-tcpproxy-master.tar.bz2
acf-tcpproxy-master.tar.xz
Remove trailing whitespaceHEADmaster
-rw-r--r--Makefile2
-rw-r--r--tcpproxy-listsmtpentries-html.lsp2
-rw-r--r--tcpproxy-listsmtpfiles-html.lsp2
-rw-r--r--tcpproxy-model.lua16
-rw-r--r--tcpproxy-smtpstatus-html.lsp2
5 files changed, 12 insertions, 12 deletions
diff --git a/Makefile b/Makefile
index 3472393..af59723 100644
--- a/Makefile
+++ b/Makefile
@@ -8,7 +8,7 @@ APP_DIST=\
EXTRA_DIST=README Makefile config.mk
-DISTFILES=$(APP_DIST) $(EXTRA_DIST)
+DISTFILES=$(APP_DIST) $(EXTRA_DIST)
TAR=tar
diff --git a/tcpproxy-listsmtpentries-html.lsp b/tcpproxy-listsmtpentries-html.lsp
index 372dc0b..2d4c441 100644
--- a/tcpproxy-listsmtpentries-html.lsp
+++ b/tcpproxy-listsmtpentries-html.lsp
@@ -1,4 +1,4 @@
-<% local view, viewlibrary, page_info, session = ...
+<% local view, viewlibrary, page_info, session = ...
htmlviewfunctions = require("htmlviewfunctions")
html = require("acf.html")
%>
diff --git a/tcpproxy-listsmtpfiles-html.lsp b/tcpproxy-listsmtpfiles-html.lsp
index ac8de32..b4bd0cc 100644
--- a/tcpproxy-listsmtpfiles-html.lsp
+++ b/tcpproxy-listsmtpfiles-html.lsp
@@ -1,4 +1,4 @@
-<% local view, viewlibrary, page_info, session = ...
+<% local view, viewlibrary, page_info, session = ...
htmlviewfunctions = require("htmlviewfunctions")
html = require("acf.html")
%>
diff --git a/tcpproxy-model.lua b/tcpproxy-model.lua
index 6dc7537..8944754 100644
--- a/tcpproxy-model.lua
+++ b/tcpproxy-model.lua
@@ -200,11 +200,11 @@ end
-- ################################################################################
-- PUBLIC FUNCTIONS
-function mymodule.get_startstop(self, clientdata)
+function mymodule.get_startstop(self, clientdata)
return modelfunctions.get_startstop(processname)
end
-function mymodule.startstop_service(self, startstop, action)
+function mymodule.startstop_service(self, startstop, action)
return modelfunctions.startstop_service(startstop, action)
end
@@ -242,10 +242,10 @@ function mymodule.listsmtpentries(self)
table.insert(entries.value, entry)
end
end
-
+
local reverseaddress = {}
for i,int in ipairs(entries.value) do reverseaddress[int.ipaddr or int.interface] = i end
-
+
config = config or parseconfigfile(fs.read_file(configfile) or "")
local smtpconfig = getsmtpconfig(config)
for i,int in ipairs(smtpconfig) do
@@ -260,7 +260,7 @@ function mymodule.listsmtpentries(self)
table.insert(entries.value, int)
end
end
-
+
return entries
end
@@ -297,7 +297,7 @@ end
function mymodule.updatesmtpentry(self, entry)
local success, entry = validatesmtpentry(entry)
-
+
if success then
local options = parsesmtpcmd(getsmtpcmd(entry.value.ipaddr.value))
@@ -335,7 +335,7 @@ function mymodule.updatesmtpentry(self, entry)
if options[""] ~= "" then
exec[#exec + 1] = options[""]
end
-
+
setsmtpcmd(entry.value.ipaddr.value, table.concat(exec, " "))
else
entry.errtxt = "Failed to set SMTP Proxy Entry"
@@ -416,7 +416,7 @@ function mymodule.delsmtpfile(self, delfile)
delfile.errtxt = "Failed to delete SMTP Proxy File"
delfile.value.filename.errtxt = "Invalid filename"
end
-
+
return delfile
end
diff --git a/tcpproxy-smtpstatus-html.lsp b/tcpproxy-smtpstatus-html.lsp
index e50a954..f8fd3ef 100644
--- a/tcpproxy-smtpstatus-html.lsp
+++ b/tcpproxy-smtpstatus-html.lsp
@@ -1,4 +1,4 @@
-<% local view, viewlibrary, page_info, session = ...
+<% local view, viewlibrary, page_info, session = ...
htmlviewfunctions = require("htmlviewfunctions")
html = require("acf.html")
%>