From 8b52e62b867452a95cd568d6f35b6e74be70f485 Mon Sep 17 00:00:00 2001 From: Marten Seemann Date: Sun, 24 Nov 2019 08:33:14 +0700 Subject: [PATCH] allow corrupting of Retry packets in the MITM integration test --- integrationtests/self/mitm_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/integrationtests/self/mitm_test.go b/integrationtests/self/mitm_test.go index 0c594027..2358562a 100644 --- a/integrationtests/self/mitm_test.go +++ b/integrationtests/self/mitm_test.go @@ -253,8 +253,7 @@ var _ = Describe("MITM test", func() { It("downloads a message when packet are corrupted towards the client", func() { dropCb := func(dir quicproxy.Direction, raw []byte) bool { defer GinkgoRecover() - isRetry := raw[0]&0xc0 == 0xc0 // don't corrupt Retry packets - if dir == quicproxy.DirectionOutgoing && mrand.Intn(interval) == 0 && !isRetry { + if dir == quicproxy.DirectionOutgoing && mrand.Intn(interval) == 0 { pos := mrand.Intn(len(raw)) raw[pos] = byte(mrand.Intn(256)) _, err := serverConn.WriteTo(raw, clientConn.LocalAddr())