Size the buffers of a handshake packet sent through a relay for the packet, not the mtu

This commit is contained in:
JackDoan committed 2026-10-15 10:43:07 -05:00
1 parent d190ac7446
commit e8d6cd9b58
2 files changed
+11 -3

No files matched your search

+1 -1
View File
@@ -163,7 +163,7 @@ func (rm *relayManager) StartRelays(f *Interface, vpnIp netip.Addr, hh *Handshak
case Established:
hl.Log(context.Background(), level, "Send handshake via relay", "relay", relay.String())
_ = f.handshakeManager.sendFragmented(now, later, func(p []byte) error {
f.SendVia(relayHostInfo, existingRelay, p, make([]byte, 12), make([]byte, mtu), false, 0)
f.sendHandshakeVia(relayHostInfo, existingRelay, p)
return nil
})
case Disestablished: