Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ACF
acf-ipsec-tools
Commits
9edd4f96
Commit
9edd4f96
authored
Aug 10, 2016
by
Ted Trask
Browse files
Remove trailing whitespace
parent
dbdc3e5e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
9edd4f96
...
...
@@ -8,7 +8,7 @@ APP_DIST=\
EXTRA_DIST
=
README Makefile config.mk
DISTFILES
=
$(APP_DIST)
$(EXTRA_DIST)
DISTFILES
=
$(APP_DIST)
$(EXTRA_DIST)
TAR
=
tar
...
...
ipsectools-details-html.lsp
View file @
9edd4f96
<% local data, viewlibrary, page_info, session = ...
<% local data, viewlibrary, page_info, session = ...
htmlviewfunctions = require("htmlviewfunctions")
html = require("acf.html")
%>
...
...
@@ -17,7 +17,7 @@ else
io.write("<table>\n")
local tags = {"Created","Source","Destination", "St", "Phase2details"}
for j,tag in pairs(tags) do
io.write("<tr><td style='font-weight:bold;width:120px;border:none;'>" ..
io.write("<tr><td style='font-weight:bold;width:120px;border:none;'>" ..
html.html_escape(entry[tag].label) .. "</td><td style='border:none;'>"..string.gsub(html.html_escape(entry[tag].value), "\n", "<br/>"))
if (entry[tag].descr) and (#entry[tag].descr > 0) then io.write(" (".. html.html_escape(entry[tag].descr) .. ")") end
io.write("</td></tr>")
...
...
ipsectools-expert-html.lsp
View file @
9edd4f96
...
...
@@ -3,7 +3,7 @@
<% htmlviewfunctions.displaycommandresults({"editracoon", "editipsec"}, session, true) %>
<%
<%
viewlibrary.dispatch_component("status")
viewlibrary.dispatch_component("editracoon")
viewlibrary.dispatch_component("editipsec")
...
...
ipsectools-model.lua
View file @
9edd4f96
...
...
@@ -39,7 +39,7 @@ local function racoonctl_table()
local
value
=
modelfunctions
.
run_executable
({
"ip"
,
"xfrm"
,
"state"
})
-- Get rid of all lines that don't start with "src"
local
phase2details
=
string.gsub
(
value
,
"
\n
[^s][^\n]*"
,
""
)
value
=
modelfunctions
.
run_executable
({
"racoonctl"
,
"-lll"
,
"show-sa"
,
"isakmp"
})
for
i
,
line
in
pairs
(
format
.
string_to_table
(
value
,
"
\n
"
))
do
if
not
((
string.find
(
line
,
"^Source"
))
or
(
#
line
==
0
))
then
...
...
@@ -113,7 +113,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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment