mirror of
https://github.com/slackhq/nebula.git
synced 2026-11-15 22:46:52 +01:00
Size the buffers of a handshake packet sent through a relay for the packet, not the mtu
This commit is contained in:
1 parent
d190ac7446
commit
e8d6cd9b58
2 files changed
+11
-3
No files matched your search
+1
-1
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user