Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
acf-dnscache
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ACF
acf-dnscache
Commits
67e462c9
Commit
67e462c9
authored
Aug 10, 2016
by
Ted Trask
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove trailing whitespace
parent
9ad1da37
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
8 deletions
+8
-8
Makefile
Makefile
+1
-1
dnscache-config-html.lsp
dnscache-config-html.lsp
+1
-1
dnscache-listdomains-html.lsp
dnscache-listdomains-html.lsp
+2
-2
dnscache-model.lua
dnscache-model.lua
+4
-4
No files found.
Makefile
View file @
67e462c9
...
...
@@ -8,7 +8,7 @@ APP_DIST=\
EXTRA_DIST
=
README Makefile config.mk
DISTFILES
=
$(APP_DIST)
$(EXTRA_DIST)
DISTFILES
=
$(APP_DIST)
$(EXTRA_DIST)
TAR
=
tar
...
...
dnscache-config-html.lsp
View file @
67e462c9
<% local form, viewlibrary, page_info, session = ...
<% local form, viewlibrary, page_info, session = ...
htmlviewfunctions = require("htmlviewfunctions")
%>
...
...
dnscache-listdomains-html.lsp
View file @
67e462c9
<% local data, viewlibrary, page_info, session = ...
<% local data, viewlibrary, page_info, session = ...
htmlviewfunctions = require("htmlviewfunctions")
html = require("acf.html")
%>
...
...
@@ -42,7 +42,7 @@ local header_level2 = htmlviewfunctions.displaysectionstart(cfe({label="Edit/Vie
<%
domain.value = d
htmlviewfunctions.displayitem(cfe({type="link", value={domain=domain, redir=redir}, label="", option="Edit", action="editdomain"}), page_info, -1)
if d ~= "@" then
if d ~= "@" then
htmlviewfunctions.displayitem(cfe({type="form", value={domain=domain}, label="", option="Delete", action="deletedomain"}), page_info, -1)
end
%>
...
...
dnscache-model.lua
View file @
67e462c9
...
...
@@ -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"
...
...
Write
Preview
Markdown
is supported
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