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

feat: full packet xor

This commit is contained in:
源文雨
2023-08-04 13:00:36 +08:00
parent 37bf73c3dd
commit f474381db8
6 changed files with 39 additions and 1 deletions

View File

@@ -97,6 +97,7 @@ func (wg *WG) init(srcport, dstport uint16) {
SrcPort: srcport,
DstPort: dstport,
MTU: uint16(wg.c.MTU),
Mask: wg.c.Mask,
})
for _, peer := range wg.c.Peers {