diff options
author | Ted Trask <ttrask01@yahoo.com> | 2016-08-10 15:43:20 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2016-08-10 15:43:20 +0000 |
commit | b55a81f0e6c9afae3b37911cc182df5112586b00 (patch) | |
tree | 793fedcccdf5257f1ba4e5f13c802fe0c8860349 | |
parent | 198f3ab7aa9f92793a8501948b20d244ec956057 (diff) | |
download | acf-iptables-master.tar.bz2 acf-iptables-master.tar.xz |
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | iptables-details-html.lsp | 2 | ||||
-rw-r--r-- | iptables-editrule-html.lsp | 4 | ||||
-rw-r--r-- | iptables-model.lua | 6 |
4 files changed, 7 insertions, 7 deletions
@@ -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/iptables-details-html.lsp b/iptables-details-html.lsp index 49b6f21..f826e5c 100644 --- a/iptables-details-html.lsp +++ b/iptables-details-html.lsp @@ -1,4 +1,4 @@ -<% local data, viewlibrary, page_info, session = ... +<% local data, viewlibrary, page_info, session = ... html = require("acf.html") %> diff --git a/iptables-editrule-html.lsp b/iptables-editrule-html.lsp index aab2cf1..eba2fb3 100644 --- a/iptables-editrule-html.lsp +++ b/iptables-editrule-html.lsp @@ -1,9 +1,9 @@ -<% local form, viewlibrary, page_info = ... +<% local form, viewlibrary, page_info = ... htmlviewfunctions = require("htmlviewfunctions") html = require("acf.html") %> -<% +<% local header_level = htmlviewfunctions.displaysectionstart(form, page_info) local header_level2 = htmlviewfunctions.incrementheader(header_level) for name,val in pairs(form.value) do val.name = name end diff --git a/iptables-model.lua b/iptables-model.lua index 4eaee6a..004e4a8 100644 --- a/iptables-model.lua +++ b/iptables-model.lua @@ -233,7 +233,7 @@ function mymodule.read_chain(tab, chain) retval.table.readonly = true retval.table.type = "text" retval.chain.readonly = true - + local chn = find_chain(retval.table.value, chain) if not chn then retval.chain.errtxt = "Cannot find chain" @@ -425,7 +425,7 @@ function mymodule.read_rule(tab, chain, pos) else retval.mac_source.value = words[i+1] i = i+1 - end + end elseif words[i] == "multiport" then if words[i+2] == "!" then retval[words[i+1]].value = "!" .. words[i+3] @@ -546,7 +546,7 @@ end function mymodule.get_startstop(self, clientdata) return modelfunctions.get_startstop(servicename) end - + function mymodule.startstop_service(self, startstop, action) return modelfunctions.startstop_service(startstop, action) end |