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
9a5e4fa1
Commit
9a5e4fa1
authored
Sep 26, 2019
by
xieyanker
Committed by
Miek Gieben
Sep 26, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix mis-spelling (#3310)
Signed-off-by:
xieyanker
<
xjsisnice@gmail.com
>
parent
27e22b06
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
13 additions
and
13 deletions
+13
-13
plugin/autopath/autopath.go
plugin/autopath/autopath.go
+1
-1
plugin/cache/cache.go
plugin/cache/cache.go
+1
-1
plugin/dnssec/dnskey.go
plugin/dnssec/dnskey.go
+2
-2
plugin/forward/fuzz.go
plugin/forward/fuzz.go
+1
-1
plugin/kubernetes/autopath.go
plugin/kubernetes/autopath.go
+1
-1
plugin/kubernetes/object/service.go
plugin/kubernetes/object/service.go
+1
-1
plugin/loadbalance/handler.go
plugin/loadbalance/handler.go
+2
-2
plugin/ready/list.go
plugin/ready/list.go
+1
-1
plugin/rewrite/edns0.go
plugin/rewrite/edns0.go
+1
-1
plugin/rewrite/rewrite.go
plugin/rewrite/rewrite.go
+1
-1
plugin/secondary/setup_test.go
plugin/secondary/setup_test.go
+1
-1
No files found.
plugin/autopath/autopath.go
View file @
9a5e4fa1
...
...
@@ -5,7 +5,7 @@ client's search path resolution by performing these lookups on the server...
The server has a copy (via AutoPathFunc) of the client's search path and on
receiving a query it first establishes if the suffix matches the FIRST configured
element. If no match can be found the query will be forwarded up the plugin
chain without interference (if
f
'fallthrough' has been set).
chain without interference (if 'fallthrough' has been set).
If the query is deemed to fall in the search path the server will perform the
queries with each element of the search path appended in sequence until a
...
...
plugin/cache/cache.go
View file @
9a5e4fa1
...
...
@@ -15,7 +15,7 @@ import (
"github.com/miekg/dns"
)
// Cache is plugin that looks up responses in a cache and caches replies.
// Cache is
a
plugin that looks up responses in a cache and caches replies.
// It has a success and a denial of existence cache.
type
Cache
struct
{
Next
plugin
.
Handler
...
...
plugin/dnssec/dnskey.go
View file @
9a5e4fa1
...
...
@@ -79,12 +79,12 @@ func (d Dnssec) getDNSKEY(state request.Request, zone string, do bool, server st
return
m
}
// Return true if
f
this is a zone key with the SEP bit unset. This implies a ZSK (rfc4034 2.1.1).
// Return true if this is a zone key with the SEP bit unset. This implies a ZSK (rfc4034 2.1.1).
func
(
k
DNSKEY
)
isZSK
()
bool
{
return
k
.
K
.
Flags
&
(
1
<<
8
)
==
(
1
<<
8
)
&&
k
.
K
.
Flags
&
1
==
0
}
// Return true if
f
this is a zone key with the SEP bit set. This implies a KSK (rfc4034 2.1.1).
// Return true if this is a zone key with the SEP bit set. This implies a KSK (rfc4034 2.1.1).
func
(
k
DNSKEY
)
isKSK
()
bool
{
return
k
.
K
.
Flags
&
(
1
<<
8
)
==
(
1
<<
8
)
&&
k
.
K
.
Flags
&
1
==
1
}
plugin/forward/fuzz.go
View file @
9a5e4fa1
...
...
@@ -11,7 +11,7 @@ import (
var
f
*
Forward
// abuse init to setup a environment to test against. This start another server to that will
// abuse init to setup a
n
environment to test against. This start another server to that will
// reflect responses.
func
init
()
{
f
=
New
()
...
...
plugin/kubernetes/autopath.go
View file @
9a5e4fa1
...
...
@@ -49,7 +49,7 @@ func (k *Kubernetes) AutoPath(state request.Request) []string {
return
search
}
// podWithIP return the api.Pod for source IP
ip
. It returns nil if nothing can be found.
// podWithIP return the api.Pod for source IP. It returns nil if nothing can be found.
func
(
k
*
Kubernetes
)
podWithIP
(
ip
string
)
*
object
.
Pod
{
ps
:=
k
.
APIConn
.
PodIndex
(
ip
)
if
len
(
ps
)
==
0
{
...
...
plugin/kubernetes/object/service.go
View file @
9a5e4fa1
...
...
@@ -46,7 +46,7 @@ func ToService(obj interface{}) interface{} {
}
if
len
(
svc
.
Spec
.
Ports
)
==
0
{
// Add sentin
a
l if there are no ports.
// Add sentin
e
l if there are no ports.
s
.
Ports
=
[]
api
.
ServicePort
{{
Port
:
-
1
}}
}
else
{
s
.
Ports
=
make
([]
api
.
ServicePort
,
len
(
svc
.
Spec
.
Ports
))
...
...
plugin/loadbalance/handler.go
View file @
9a5e4fa1
// Package loadbalance is plugin for rewriting responses to do "load balancing"
// Package loadbalance is
a
plugin for rewriting responses to do "load balancing"
package
loadbalance
import
(
...
...
@@ -9,7 +9,7 @@ import (
"github.com/miekg/dns"
)
// RoundRobin is plugin to rewrite responses for "load balancing".
// RoundRobin is
a
plugin to rewrite responses for "load balancing".
type
RoundRobin
struct
{
Next
plugin
.
Handler
}
...
...
plugin/ready/list.go
View file @
9a5e4fa1
...
...
@@ -6,7 +6,7 @@ import (
"sync"
)
// list is structure that holds the plugins that signals readiness for this server block.
// list is
a
structure that holds the plugins that signals readiness for this server block.
type
list
struct
{
sync
.
RWMutex
rs
[]
Readiness
...
...
plugin/rewrite/edns0.go
View file @
9a5e4fa1
// Package rewrite is plugin for rewriting requests internally to something different.
// Package rewrite is
a
plugin for rewriting requests internally to something different.
package
rewrite
import
(
...
...
plugin/rewrite/rewrite.go
View file @
9a5e4fa1
...
...
@@ -29,7 +29,7 @@ const (
Continue
=
"continue"
)
// Rewrite is plugin to rewrite requests internally before being handled.
// Rewrite is
a
plugin to rewrite requests internally before being handled.
type
Rewrite
struct
{
Next
plugin
.
Handler
Rules
[]
Rule
...
...
plugin/secondary/setup_test.go
View file @
9a5e4fa1
...
...
@@ -55,7 +55,7 @@ func TestSecondaryParse(t *testing.T) {
}
}
// This is only set *if
f
* we have a zone (i.e. not in all tests above)
// This is only set *if* we have a zone (i.e. not in all tests above)
for
_
,
v
:=
range
s
.
Z
{
if
x
:=
v
.
TransferFrom
[
0
];
x
!=
test
.
transferFrom
{
t
.
Fatalf
(
"Test %d transform from names don't match expected %q, but got %q"
,
i
,
test
.
transferFrom
,
x
)
...
...
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