Added persistent connections cache

This commit is contained in:
Andrey Meshkov
2018-11-05 20:40:10 +03:00
parent 484c0ceaff
commit d6f560ecaf
6 changed files with 344 additions and 80 deletions

View File

@@ -18,6 +18,8 @@ const (
dnsMessageContentType = "application/dns-message"
)
// TODO: Add bootstrap DNS resolver field
// HttpsUpstream is the upstream implementation for DNS-over-HTTPS
type HttpsUpstream struct {
client *http.Client
@@ -107,3 +109,8 @@ func (u *HttpsUpstream) exchangeWireformat(msg []byte) ([]byte, error) {
return buf, nil
}
// Clear resources
func (u *HttpsUpstream) Close() error {
return nil
}