Skip to content

Commit c181fc9

Browse files
committed
multiplexer: Don't retransmit AIS nmea0183 input
1 parent a27c6e8 commit c181fc9

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

model/src/multiplexer.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,11 @@ void Multiplexer::HandleN0183(
252252
std::shared_ptr<const Nmea0183Msg> msg = n0183_msg;
253253
if ((m_legacy_input_filter_behaviour && !passes_input_filter) ||
254254
passes_input_filter) {
255+
// Don't retransmit synthetic messages generated by AisDecoder or
256+
// when sending to plugins using PushNMEABuffer()
257+
if (n0183_msg->source && n0183_msg->source->iface == "virtual")
258+
continue;
259+
255260
// Allow re-transmit on same port (if type is SERIAL),
256261
// or any other NMEA0183 port supporting output
257262
// But, do not echo to the source network interface. This will

0 commit comments

Comments
 (0)