From d1ab38b2662aef5965dd845b0c619dcb24dbb79c Mon Sep 17 00:00:00 2001 From: Josh Deprez Date: Sat, 4 May 2024 16:16:17 +1000 Subject: [PATCH] Fix crash in rtmpDataPackets --- router/rtmp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/router/rtmp.go b/router/rtmp.go index 547b53f..bdfb6b5 100644 --- a/router/rtmp.go +++ b/router/rtmp.go @@ -211,7 +211,7 @@ func (port *EtherTalkPort) rtmpDataPackets(splitHorizon bool) []*rtmp.DataPacket // (It's manually set as the first tuple anyway.) continue } - if splitHorizon && rt.EtherTalkPeer.Port == port { + if splitHorizon && rt.EtherTalkPeer != nil && rt.EtherTalkPeer.Port == port { // If the route is through a peer accessible on this port, don't // include it. continue