Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
C
Coredns
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
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
Railgun
Coredns
Commits
bffb955f
Commit
bffb955f
authored
May 15, 2018
by
Ruslan Drozhdzh
Committed by
John Belamaric
May 15, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
plugin/tls: make CA parameter optional (#1800)
parent
8026dc25
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
plugin/tls/README.md
plugin/tls/README.md
+3
-1
plugin/tls/tls.go
plugin/tls/tls.go
+2
-2
No files found.
plugin/tls/README.md
View file @
bffb955f
...
@@ -22,9 +22,11 @@ wire data of a DNS message.
...
@@ -22,9 +22,11 @@ wire data of a DNS message.
## Syntax
## Syntax
~~~
txt
~~~
txt
tls CERT KEY
CA
tls CERT KEY
[CA]
~~~
~~~
Parameter CA is optional. If not set, system CAs can be used to verify the client certificate
## Examples
## Examples
Start a DNS-over-TLS server that picks up incoming DNS-over-TLS queries on port 5553 and uses the
Start a DNS-over-TLS server that picks up incoming DNS-over-TLS queries on port 5553 and uses the
...
...
plugin/tls/tls.go
View file @
bffb955f
...
@@ -24,10 +24,10 @@ func setup(c *caddy.Controller) error {
...
@@ -24,10 +24,10 @@ func setup(c *caddy.Controller) error {
for
c
.
Next
()
{
for
c
.
Next
()
{
args
:=
c
.
RemainingArgs
()
args
:=
c
.
RemainingArgs
()
if
len
(
args
)
!=
3
{
if
len
(
args
)
<
2
||
len
(
args
)
>
3
{
return
plugin
.
Error
(
"tls"
,
c
.
ArgErr
())
return
plugin
.
Error
(
"tls"
,
c
.
ArgErr
())
}
}
tls
,
err
:=
tls
.
NewTLSConfig
(
args
[
0
],
args
[
1
],
args
[
2
]
)
tls
,
err
:=
tls
.
NewTLSConfig
FromArgs
(
args
...
)
if
err
!=
nil
{
if
err
!=
nil
{
return
plugin
.
Error
(
"tls"
,
err
)
return
plugin
.
Error
(
"tls"
,
err
)
}
}
...
...
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