This commit is contained in:
gVisor bot 2021-10-11 21:05:38 +08:00
parent d7e31932c7
commit 088b281a6a

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)
msg.Id = m.Id
if err == nil {
msg.Id = m.Id
}
return
}