aboutsummaryrefslogtreecommitdiff
path: root/plugin/proxy
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/proxy')
-rw-r--r--plugin/proxy/dns.go3
-rw-r--r--plugin/proxy/dnstap.go3
-rw-r--r--plugin/proxy/dnstap_test.go3
-rw-r--r--plugin/proxy/exchanger.go3
-rw-r--r--plugin/proxy/google.go3
-rw-r--r--plugin/proxy/grpc.go3
-rw-r--r--plugin/proxy/grpc_test.go3
-rw-r--r--plugin/proxy/lookup.go3
-rw-r--r--plugin/proxy/proxy.go3
9 files changed, 18 insertions, 9 deletions
diff --git a/plugin/proxy/dns.go b/plugin/proxy/dns.go
index bbff3ba4a..f555b0d29 100644
--- a/plugin/proxy/dns.go
+++ b/plugin/proxy/dns.go
@@ -6,8 +6,9 @@ import (
"github.com/coredns/coredns/request"
+ "context"
+
"github.com/miekg/dns"
- "golang.org/x/net/context"
)
type dnsEx struct {
diff --git a/plugin/proxy/dnstap.go b/plugin/proxy/dnstap.go
index 9633060b8..8611c8254 100644
--- a/plugin/proxy/dnstap.go
+++ b/plugin/proxy/dnstap.go
@@ -7,9 +7,10 @@ import (
"github.com/coredns/coredns/plugin/dnstap/msg"
"github.com/coredns/coredns/request"
+ "context"
+
tap "github.com/dnstap/golang-dnstap"
"github.com/miekg/dns"
- "golang.org/x/net/context"
)
func toDnstap(ctx context.Context, host string, ex Exchanger, state request.Request, reply *dns.Msg, start time.Time) error {
diff --git a/plugin/proxy/dnstap_test.go b/plugin/proxy/dnstap_test.go
index 83696921a..ffee1d470 100644
--- a/plugin/proxy/dnstap_test.go
+++ b/plugin/proxy/dnstap_test.go
@@ -9,9 +9,10 @@ import (
mwtest "github.com/coredns/coredns/plugin/test"
"github.com/coredns/coredns/request"
+ "context"
+
tap "github.com/dnstap/golang-dnstap"
"github.com/miekg/dns"
- "golang.org/x/net/context"
)
func testCase(t *testing.T, ex Exchanger, q, r *dns.Msg, datq, datr *msg.Builder) {
diff --git a/plugin/proxy/exchanger.go b/plugin/proxy/exchanger.go
index 283022dae..c0d4f7227 100644
--- a/plugin/proxy/exchanger.go
+++ b/plugin/proxy/exchanger.go
@@ -3,8 +3,9 @@ package proxy
import (
"github.com/coredns/coredns/request"
+ "context"
+
"github.com/miekg/dns"
- "golang.org/x/net/context"
)
// Exchanger is an interface that specifies a type implementing a DNS resolver that
diff --git a/plugin/proxy/google.go b/plugin/proxy/google.go
index 9192ce83b..85591061e 100644
--- a/plugin/proxy/google.go
+++ b/plugin/proxy/google.go
@@ -14,8 +14,9 @@ import (
"github.com/coredns/coredns/plugin/pkg/log"
"github.com/coredns/coredns/request"
+ "context"
+
"github.com/miekg/dns"
- "golang.org/x/net/context"
)
type google struct {
diff --git a/plugin/proxy/grpc.go b/plugin/proxy/grpc.go
index 334cd5264..8b596c89a 100644
--- a/plugin/proxy/grpc.go
+++ b/plugin/proxy/grpc.go
@@ -9,10 +9,11 @@ import (
"github.com/coredns/coredns/plugin/pkg/trace"
"github.com/coredns/coredns/request"
+ "context"
+
"github.com/grpc-ecosystem/grpc-opentracing/go/otgrpc"
"github.com/miekg/dns"
opentracing "github.com/opentracing/opentracing-go"
- "golang.org/x/net/context"
"google.golang.org/grpc"
"google.golang.org/grpc/credentials"
)
diff --git a/plugin/proxy/grpc_test.go b/plugin/proxy/grpc_test.go
index 0dd4e70fd..1deee60ab 100644
--- a/plugin/proxy/grpc_test.go
+++ b/plugin/proxy/grpc_test.go
@@ -9,8 +9,9 @@ import (
"github.com/coredns/coredns/plugin/test"
"github.com/coredns/coredns/request"
+ "context"
+
"github.com/miekg/dns"
- "golang.org/x/net/context"
"google.golang.org/grpc/grpclog"
)
diff --git a/plugin/proxy/lookup.go b/plugin/proxy/lookup.go
index 372ad1500..bd4952bdd 100644
--- a/plugin/proxy/lookup.go
+++ b/plugin/proxy/lookup.go
@@ -11,8 +11,9 @@ import (
"github.com/coredns/coredns/plugin/pkg/healthcheck"
"github.com/coredns/coredns/request"
+ "context"
+
"github.com/miekg/dns"
- "golang.org/x/net/context"
)
// NewLookup create a new proxy with the hosts in host and a Random policy.
diff --git a/plugin/proxy/proxy.go b/plugin/proxy/proxy.go
index eae9953df..042ac0578 100644
--- a/plugin/proxy/proxy.go
+++ b/plugin/proxy/proxy.go
@@ -13,9 +13,10 @@ import (
"github.com/coredns/coredns/plugin/pkg/healthcheck"
"github.com/coredns/coredns/request"
+ "context"
+
"github.com/miekg/dns"
ot "github.com/opentracing/opentracing-go"
- "golang.org/x/net/context"
)
var (