Skip to content

Commit

Permalink
fix wireguard mtu bug
Browse files Browse the repository at this point in the history
  • Loading branch information
GFW-knocker committed Aug 26, 2024
1 parent b722bf0 commit 5fbc0ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion proxy/wireguard/gvisortun/tun.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func CreateNetTUN(localAddresses []netip.Addr, mtu int, promiscuousMode bool) (t
TransportProtocols: []stack.TransportProtocolFactory{tcp.NewProtocol, udp.NewProtocol, icmp.NewProtocol6, icmp.NewProtocol4},
HandleLocal: !promiscuousMode,
}
mtu = 1420
// mtu = 1420
dev := &netTun{
ep: channel.New(1024, uint32(mtu), ""),
stack: stack.New(opts),
Expand Down

0 comments on commit 5fbc0ca

Please sign in to comment.