mirror of
https://github.com/m13253/dns-over-https.git
synced 2026-03-30 14:15:40 +00:00
Add ResponseHeaderTimeout
This commit is contained in:
@@ -101,6 +101,7 @@ func NewClient(addr, upstream string, bootstraps []string, timeout uint, noECS,
|
||||
DualStack: true,
|
||||
Resolver: bootResolver,
|
||||
}).DialContext
|
||||
httpTransport.ResponseHeaderTimeout = time.Duration(c.timeout) * time.Second
|
||||
// Most CDNs require Cookie support to prevent DDoS attack
|
||||
cookieJar, err := cookiejar.New(nil)
|
||||
if err != nil { return nil, err }
|
||||
|
||||
Reference in New Issue
Block a user