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

add peerwise mtu

This commit is contained in:
源文雨
2022-05-13 13:50:41 +08:00
parent 4ccd99b63f
commit 4e833c877d
10 changed files with 19 additions and 7 deletions

View File

@@ -88,6 +88,7 @@ func NewMe(cfg *MyConfig) (m Me) {
EndPoint: "127.0.0.1:56789",
AllowedIPs: []string{cfg.MyIPwithMask},
NoPipe: cfg.NIC != nil,
MTU: cfg.MTU,
})
m.srcport = cfg.SrcPort
m.dstport = cfg.DstPort