mirror of
https://github.com/MetaCubeX/Clash.Meta.git
synced 2025-04-20 01:00:56 +00:00
fix: catch context.DeadlineExceeded too
This commit is contained in:
parent
cc32f639ed
commit
271ae04f1e
1 changed files with 1 additions and 1 deletions
|
@ -140,7 +140,7 @@ func (doh *dnsOverHTTPS) ExchangeContext(ctx context.Context, m *D.Msg) (msg *D.
|
|||
msg, err = doh.exchangeHTTPS(ctx, client, m)
|
||||
}
|
||||
|
||||
if err != nil && !errors.Is(err, context.Canceled) {
|
||||
if err != nil && !errors.Is(err, context.Canceled) && !errors.Is(err, context.DeadlineExceeded) {
|
||||
// If the request failed anyway, make sure we don't use this client.
|
||||
_, resErr := doh.resetClient(ctx, err)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue