mirror of
https://github.com/nadoo/glider.git
synced 2025-02-23 17:35:40 +08:00
dns: fixed an issue
This commit is contained in:
parent
b21ce3394d
commit
773d5d3b9d
@ -67,8 +67,8 @@ func (c *Client) Exchange(reqBytes []byte, clientAddr string, preferTCP bool) ([
|
|||||||
}
|
}
|
||||||
|
|
||||||
if c.config.NoAAAA && req.Question.QTYPE == QTypeAAAA {
|
if c.config.NoAAAA && req.Question.QTYPE == QTypeAAAA {
|
||||||
reqBytes[2] |= uint8(ResponseMsg) << 7
|
req.SetMsgType(ResponseMsg)
|
||||||
return reqBytes, nil
|
return req.Marshal()
|
||||||
}
|
}
|
||||||
|
|
||||||
if req.Question.QTYPE == QTypeA || req.Question.QTYPE == QTypeAAAA {
|
if req.Question.QTYPE == QTypeA || req.Question.QTYPE == QTypeAAAA {
|
||||||
|
Loading…
Reference in New Issue
Block a user