perf: use chan to communicate between tcpserver and tun

This commit is contained in:
fengcaiwen
2023-07-22 20:08:35 +08:00
committed by naison
parent fdf75b0f0f
commit d87363d2cd
10 changed files with 147 additions and 108 deletions

View File

@@ -135,7 +135,7 @@ var (
// network layer ip needs 20 bytes
// transport layer UDP header needs 8 bytes
// UDP over TCP header needs 22 bytes
DefaultMTU = 1500 - 20 - 8 - 21
DefaultMTU = 65521
)
var (