1
0
mirror of https://github.com/fumiama/WireGold.git synced 2026-06-28 14:50:26 +08:00

feat: add ztsd for data compressing

This commit is contained in:
源文雨
2023-08-04 12:03:49 +08:00
parent 96e31e22e9
commit 47d8e35d19
8 changed files with 44 additions and 10 deletions

View File

@@ -37,6 +37,8 @@ type Link struct {
status int8
// 是否允许转发
allowtrans bool
// 是否对数据进行 zstd 压缩
usezstd bool
// udp 数据包的最大大小
mtu uint16
// 随机放缩 mtu 范围 (只减不增)