Multi-port refactor #1

Merged
josh merged 8 commits from multi-port-refactor into main 2024-05-04 17:06:20 +10:00
Showing only changes of commit d1ab38b266 - Show all commits

View file

@ -211,7 +211,7 @@ func (port *EtherTalkPort) rtmpDataPackets(splitHorizon bool) []*rtmp.DataPacket
// (It's manually set as the first tuple anyway.) // (It's manually set as the first tuple anyway.)
continue 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 // If the route is through a peer accessible on this port, don't
// include it. // include it.
continue continue