Remove unused code.

This commit is contained in:
Eugene Bujak
2018-12-06 17:18:44 +03:00
parent 8fb6f92753
commit e056fb2eb9
2 changed files with 0 additions and 17 deletions

View File

@@ -76,13 +76,6 @@ type dnsOverTLS struct {
sync.RWMutex // protects pool
}
var defaultTLSClient = dns.Client{
Net: "tcp-tls",
Timeout: defaultTimeout,
UDPSize: dns.MaxMsgSize,
TLSConfig: &tls.Config{},
}
func (p *dnsOverTLS) Address() string { return p.boot.address }
func (p *dnsOverTLS) Exchange(m *dns.Msg) (*dns.Msg, error) {
@@ -128,13 +121,6 @@ type dnsOverHTTPS struct {
boot bootstrapper
}
var defaultHTTPSTransport = http.Transport{}
var defaultHTTPSClient = http.Client{
Transport: &defaultHTTPSTransport,
Timeout: defaultTimeout,
}
func (p *dnsOverHTTPS) Address() string { return p.boot.address }
func (p *dnsOverHTTPS) Exchange(m *dns.Msg) (*dns.Msg, error) {