1
0
mirror of https://github.com/fumiama/WireGold.git synced 2026-06-04 23:40:26 +08:00
This commit is contained in:
fumiama
2022-01-01 20:15:43 +08:00
parent 6f096bd9e4
commit 2b0d5059ec
5 changed files with 9 additions and 5 deletions

View File

@@ -2,6 +2,7 @@ package wg
import (
"errors"
"fmt"
"net"
base14 "github.com/fumiama/go-base16384"
@@ -92,7 +93,7 @@ func (wg *WG) init(srcport, destport, mtu uint16) {
&wg.key,
wg.c.IP+"/32",
wg.c.EndPoint,
lower.NewNIC(wg.c.IP, wg.c.SubNet, cidrs...),
lower.NewNIC(wg.c.IP, wg.c.SubNet, fmt.Sprintf("%d", mtu), cidrs...),
srcport, destport, mtu,
)