mirror of
https://github.com/m13253/dns-over-https.git
synced 2026-11-13 00:37:52 +00:00
Enable Cookie, which might have better CDN cache performance
This commit is contained in:
1 parent
892066d4a3
commit
c4412e2993
1 file changed
+1
@@ -101,6 +101,7 @@ func NewClient(addr, upstream string, bootstraps []string, timeout uint, noECS,
|
||||
DualStack: true,
|
||||
Resolver: bootResolver,
|
||||
}).DialContext
|
||||
// Most CDNs require Cookie support to prevent DDoS attack
|
||||
cookieJar, err := cookiejar.New(nil)
|
||||
if err != nil { return nil, err }
|
||||
c.httpClient = &http.Client {
|
||||
|
||||
Reference in new issue
Block a user