aboutsummaryrefslogtreecommitdiff
path: root/middleware/httpproxy/tls.go
diff options
context:
space:
mode:
Diffstat (limited to 'middleware/httpproxy/tls.go')
-rw-r--r--middleware/httpproxy/tls.go33
1 files changed, 0 insertions, 33 deletions
diff --git a/middleware/httpproxy/tls.go b/middleware/httpproxy/tls.go
deleted file mode 100644
index 2c05a0331..000000000
--- a/middleware/httpproxy/tls.go
+++ /dev/null
@@ -1,33 +0,0 @@
-package httpproxy
-
-import (
- "crypto/tls"
- "net/http"
- "time"
-
- "github.com/miekg/coredns/request"
- "github.com/miekg/dns"
-)
-
-// Exchanger is an interface that specifies a type implementing a DNS resolver that
-// uses a HTTPS server.
-type Exchanger interface {
- Exchange(request.Request) (*dns.Msg, error)
-
- SetUpstream(*simpleUpstream) error
- OnStartup() error
- OnShutdown() error
-}
-
-func newClient(sni string) *http.Client {
- tls := &tls.Config{ServerName: sni}
-
- c := &http.Client{
- Timeout: time.Second * timeOut,
- Transport: &http.Transport{TLSClientConfig: tls},
- }
-
- return c
-}
-
-const timeOut = 5