mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2025-02-23 12:42:27 +08:00
Fix: #1660 panic
This commit is contained in:
parent
3d5681cffd
commit
13bd601cac
@ -39,7 +39,9 @@ func (dc *dohClient) ExchangeContext(ctx context.Context, m *D.Msg) (msg *D.Msg,
|
|||||||
|
|
||||||
req = req.WithContext(ctx)
|
req = req.WithContext(ctx)
|
||||||
msg, err = dc.doRequest(req)
|
msg, err = dc.doRequest(req)
|
||||||
|
if err == nil {
|
||||||
msg.Id = m.Id
|
msg.Id = m.Id
|
||||||
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user