mirror of
https://github.com/nadoo/glider.git
synced 2025-02-23 01:15:41 +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 {
|
||||
reqBytes[2] |= uint8(ResponseMsg) << 7
|
||||
return reqBytes, nil
|
||||
req.SetMsgType(ResponseMsg)
|
||||
return req.Marshal()
|
||||
}
|
||||
|
||||
if req.Question.QTYPE == QTypeA || req.Question.QTYPE == QTypeAAAA {
|
||||
|
Loading…
Reference in New Issue
Block a user