This commit is contained in:
Dreamacro 2021-10-11 21:05:38 +08:00
parent 3d5681cffd
commit 13bd601cac
1 changed files with 3 additions and 1 deletions

View File

@ -39,7 +39,9 @@ func (dc *dohClient) ExchangeContext(ctx context.Context, m *D.Msg) (msg *D.Msg,
req = req.WithContext(ctx)
msg, err = dc.doRequest(req)
if err == nil {
msg.Id = m.Id
}
return
}