Skip to content

Commit

Permalink
use user provided read timeout as DoH timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
Ondřej Benkovský committed Feb 11, 2022
1 parent 816c678 commit 68b9d07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/dnstrace/benchmark.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func do(ctx context.Context) []*rstats {
network = network + "/1.1"
tr = &http.Transport{}
}
c := http.Client{Transport: tr}
c := http.Client{Transport: tr, Timeout: *pReadTimeout}
dohClient = *doh.NewClient(&c)

switch *pDoHmethod {
Expand Down

0 comments on commit 68b9d07

Please sign in to comment.