fix: truncated dns resp (#203)

This commit is contained in:
mzz
2023-07-11 01:25:05 +08:00
committed by GitHub
parent 11d2ea945f
commit 1cc9edc0c6
7 changed files with 21 additions and 18 deletions

View File

@ -639,7 +639,7 @@ func (c *DnsController) dialSend(invokingDepth int, req *udpRequest, data []byte
}()
// We can block here because we are in a coroutine.
respBuf := pool.Get(512)
respBuf := pool.GetFullCap(consts.EthernetMtu)
defer pool.Put(respBuf)
for {
// Wait for response.