支持客户端加密

This commit is contained in:
lubeilin
2023-06-26 22:38:15 +08:00
parent e8af503130
commit be3bf82e35
22 changed files with 309 additions and 106 deletions
+1 -1
View File
@@ -330,7 +330,7 @@ impl Channel {
#[cfg(any(unix))]
let id = udp.as_raw_fd() as usize;
context.udp_map.insert(id, udp.clone());
let mut buf = [0; 65546];
let mut buf = [0; 65536];
loop {
tokio::select! {
rs=udp.recv_from(&mut buf[head_reserve..])=>{