Skip to content

Commit

Permalink
Transports/UDP: ignore messages from external sources, to avoid redir…
Browse files Browse the repository at this point in the history
…ecting messages that just arrived from outside.
  • Loading branch information
Bernardo-Gabriel committed Jan 23, 2025
1 parent ccf6679 commit 39a5d9f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Transports/UDP/Task.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,9 @@ namespace Transports
void
consume(const IMC::Message* msg)
{
if (msg->getSource() != getSystemId())
return;

if (m_lcomms->isActive())
{
if (msg->getId() == DUNE_IMC_ESTIMATEDSTATE)
Expand Down

0 comments on commit 39a5d9f

Please sign in to comment.