1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-09-28 14:56:33 -04:00

set recursive bits

This commit is contained in:
Darien Raymond 2019-02-15 23:13:41 +01:00
parent b2bb5a1b91
commit b488c42453
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -232,7 +232,10 @@ func (h *Handler) handleIPQuery(id uint16, qType dnsmessage.Type, domain string,
builder := dnsmessage.NewBuilder(rawBytes[:0], dnsmessage.Header{
ID: id,
RCode: dnsmessage.RCodeSuccess,
RecursionAvailable: true,
RecursionDesired: true,
Response: true,
Authoritative: true,
})
builder.EnableCompression()
common.Must(builder.StartQuestions())