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