Chore: adjust all udp alloc size

Chore: adjust all udp alloc size
This commit is contained in:
yaling888
2021-11-04 00:44:16 +08:00
committed by GitHub
4 changed files with 8 additions and 3 deletions

View File

@ -39,7 +39,7 @@ func handleUDPToRemote(packet C.UDPPacket, pc C.PacketConn, metadata *C.Metadata
}
func handleUDPToLocal(packet C.UDPPacket, pc net.PacketConn, key string, fAddr net.Addr) {
buf := pool.Get(pool.RelayBufferSize)
buf := pool.Get(pool.UDPBufferSize)
defer pool.Put(buf)
defer natTable.Delete(key)
defer pc.Close()