mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2025-12-24 13:38:05 +08:00
15 lines
329 B
Go
15 lines
329 B
Go
//go:build !with_low_memory
|
|
|
|
package pool
|
|
|
|
const (
|
|
// RelayBufferSize using for tcp
|
|
// io.Copy default buffer size is 32 KiB
|
|
RelayBufferSize = 32 * 1024
|
|
|
|
// UDPBufferSize using for udp
|
|
// Most UDPs are smaller than the MTU, and the TUN's MTU
|
|
// set to 9000, so the UDP Buffer size set to 16Kib
|
|
UDPBufferSize = 16 * 1024
|
|
)
|