From 6274e7a6791d11afa58e4664620ad83ed9f30ebf Mon Sep 17 00:00:00 2001 From: Muaz Ahmad Date: Tue, 27 Feb 2024 14:43:39 +0500 Subject: [PATCH] fix for fix for ignoring shotgunned induction handshake --- srt/protocol.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/srt/protocol.go b/srt/protocol.go index 0857a1b..c0f2913 100644 --- a/srt/protocol.go +++ b/srt/protocol.go @@ -146,11 +146,12 @@ func (agent *SRTManager) create_conclusion_resp() (*Packet) { func (agent *SRTManager) process_conclusion(packet *Packet) (*Packet) { resp_packet := agent.create_conclusion_resp() if packet.packet_type == HANDSHAKE { + hs_cif := packet.cif.(*HandshakeCIF) + // allow previous shotgunned induction requests to dissipate if hs_cif.hs_type != 0xffffffff { return nil } - hs_cif := packet.cif.(*HandshakeCIF) if hs_cif.syn_cookie == agent.syn_cookie { for _, v := range hs_cif.hs_extensions { // force client to add a stream_id for output location