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
72f5a92d
Commit
72f5a92d
authored
Mar 18, 2017
by
Miek Gieben
Committed by
GitHub
Mar 18, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Random fixes (#605)
parent
830fdfd2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
2 deletions
+4
-2
middleware/proxy/README.md
middleware/proxy/README.md
+1
-1
middleware/proxy/upstream_test.go
middleware/proxy/upstream_test.go
+3
-0
test/grpc_test.go
test/grpc_test.go
+0
-1
No files found.
middleware/proxy/README.md
View file @
72f5a92d
...
@@ -51,7 +51,7 @@ proxy FROM TO... {
...
@@ -51,7 +51,7 @@ proxy FROM TO... {
*
`protocol`
specifies what protocol to use to speak to an upstream,
`dns`
(the default) is plain
*
`protocol`
specifies what protocol to use to speak to an upstream,
`dns`
(the default) is plain
old DNS, and
`https_google`
uses
`https://dns.google.com`
and speaks a JSON DNS dialect. Note when
old DNS, and
`https_google`
uses
`https://dns.google.com`
and speaks a JSON DNS dialect. Note when
using this
**TO**
will be ignored. The
`grpc`
option will talk to a server that has implemented
using this
**TO**
will be ignored. The
`grpc`
option will talk to a server that has implemented
the
[
DnsService
](
https://github.com/coredns/coredns/
middleware/proxy/
pb/dns.proto
)
.
the
[
DnsService
](
https://github.com/coredns/coredns/pb/dns.proto
)
.
An out-of-tree middleware that implements the server side of this can be found at
An out-of-tree middleware that implements the server side of this can be found at
[
here
](
https://github.com/infobloxopen/coredns-grpc
)
.
[
here
](
https://github.com/infobloxopen/coredns-grpc
)
.
...
...
middleware/proxy/upstream_test.go
View file @
72f5a92d
...
@@ -2,6 +2,7 @@ package proxy
...
@@ -2,6 +2,7 @@ package proxy
import
(
import
(
"io/ioutil"
"io/ioutil"
"log"
"os"
"os"
"path/filepath"
"path/filepath"
"strings"
"strings"
...
@@ -14,6 +15,8 @@ import (
...
@@ -14,6 +15,8 @@ import (
)
)
func
TestHealthCheck
(
t
*
testing
.
T
)
{
func
TestHealthCheck
(
t
*
testing
.
T
)
{
log
.
SetOutput
(
ioutil
.
Discard
)
upstream
:=
&
staticUpstream
{
upstream
:=
&
staticUpstream
{
from
:
"."
,
from
:
"."
,
Hosts
:
testPool
(),
Hosts
:
testPool
(),
...
...
test/grpc_test.go
View file @
72f5a92d
...
@@ -58,5 +58,4 @@ func TestGrpc(t *testing.T) {
...
@@ -58,5 +58,4 @@ func TestGrpc(t *testing.T) {
if
len
(
d
.
Extra
)
!=
2
{
if
len
(
d
.
Extra
)
!=
2
{
t
.
Errorf
(
"Expected 2 RRs in additional section, but got %s"
,
len
(
d
.
Extra
))
t
.
Errorf
(
"Expected 2 RRs in additional section, but got %s"
,
len
(
d
.
Extra
))
}
}
t
.
Logf
(
"Message %v
\n
"
,
d
)
}
}
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