mirror of
https://github.com/slackhq/nebula.git
synced 2026-11-17 17:16:52 +01:00
Decode a fragmented handshake message straight into its packet, behind room for the Nebula header, instead of copying it there
This commit is contained in:
1 parent
4b295e086e
commit
cbcf441d7c
8 files changed
+49
-30
No files matched your search
@@ -241,6 +241,8 @@ func TestLossy(t *testing.T) {
|
||||
// duplicate can complete one again; the handshake layer
|
||||
// recognises the repeat.
|
||||
require.True(t, bytes.Equal(msg, res.Msg))
|
||||
require.Len(t, res.Packet, header.Len+len(msg))
|
||||
require.Equal(t, &res.Packet[header.Len], &res.Msg[0], "Msg follows room for a header")
|
||||
got = res
|
||||
}
|
||||
checkInvariants(t, tb)
|
||||
|
||||
Reference in new issue
Block a user