mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-12-30 05:55:20 -05:00
fix dns query
This commit is contained in:
@@ -157,7 +157,7 @@ func (v *UDPNameServer) BuildQueryA(domain string, id uint16) *buf.Buffer {
|
||||
}}
|
||||
|
||||
writtenBuffer, _ := msg.PackBuffer(buffer.Bytes())
|
||||
buffer.Slice(0, len(writtenBuffer))
|
||||
buffer.Append(writtenBuffer)
|
||||
|
||||
return buffer
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user