1
0
mirror of https://github.com/fumiama/WireGold.git synced 2026-06-04 23:40:26 +08:00

all: feats & optimizes

- feat(me): add new cfg param SpeedLoop
- chore(send): remove unnecessary err chk in write
- perf(listen): use mutex instead of bool checking
This commit is contained in:
源文雨
2024-07-11 17:44:58 +09:00
parent d695f14498
commit c0f31a70c8
6 changed files with 97 additions and 46 deletions

View File

@@ -97,6 +97,7 @@ func (wg *WG) init(srcport, dstport uint16) {
SrcPort: srcport,
DstPort: dstport,
MTU: uint16(wg.c.MTU),
SpeedLoop: wg.c.SpeedLoop,
Mask: wg.c.Mask,
})