bugfix: local dns upstream udp packet buffer size 256 (#1814)

This commit is contained in:
Hanwei Jin
2024-12-15 20:18:23 +08:00
committed by GitHub
parent 13794f51ec
commit e33819f441

View File

@@ -149,7 +149,7 @@ impl DnsClient {
let bytes = msg.to_vec()?;
socket.send(&bytes).await?;
let mut recv_buf = [0u8; 256];
let mut recv_buf = [0u8; 512];
let n = socket.recv(&mut recv_buf).await?;
Message::from_vec(&recv_buf[..n])
@@ -171,7 +171,7 @@ impl DnsClient {
let bytes = msg.to_vec()?;
socket.send_with_ctrl(ns, control, &bytes).await?;
let mut recv_buf = [0u8; 256];
let mut recv_buf = [0u8; 512];
let (n, _, recv_control) = socket.recv_with_ctrl(&mut recv_buf).await?;
if let Some(server_control) = recv_control {