Fix #16: doh-client panics when connecting no_cookies = true

This commit is contained in:
Star Brilliant
2018-07-04 22:43:08 +08:00
parent 07f39088d4
commit 83df8964d8

View File

@@ -45,7 +45,7 @@ type Client struct {
udpServers []*dns.Server
tcpServers []*dns.Server
bootstrapResolver *net.Resolver
cookieJar *cookiejar.Jar
cookieJar http.CookieJar
httpClientMux *sync.RWMutex
httpTransport *http.Transport
httpClient *http.Client