1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-21 09:36:34 -05:00

set response bit in dns

This commit is contained in:
Darien Raymond 2019-02-06 19:41:55 +01:00
parent 9a439fb084
commit fae47083c2
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -212,8 +212,9 @@ func (h *Handler) handleIPQuery(id uint16, qType dnsmessage.Type, domain string,
b := buf.New()
rawBytes := b.Extend(buf.Size)
builder := dnsmessage.NewBuilder(rawBytes[:0], dnsmessage.Header{
ID: id,
RCode: dnsmessage.RCodeSuccess,
ID: id,
RCode: dnsmessage.RCodeSuccess,
Response: true,
})
builder.StartAnswers()