Never forward mlat via SBS or raw output; it is no longer identifiable
as mlat when forwarded on those paths.
This commit is contained in:
parent
5c3692a513
commit
ecbdbf23d6
10
net_io.c
10
net_io.c
|
@ -643,12 +643,16 @@ static void send_sbs_heartbeat(struct net_service *service)
|
|||
//=========================================================================
|
||||
//
|
||||
void modesQueueOutput(struct modesMessage *mm, struct aircraft *a) {
|
||||
if ((mm->bFlags & MODES_ACFLAGS_FROM_MLAT) && !Modes.forward_mlat)
|
||||
return;
|
||||
int is_mlat = ((mm->bFlags & MODES_ACFLAGS_FROM_MLAT) != 0);
|
||||
|
||||
if (!is_mlat) {
|
||||
modesSendSBSOutput(mm, a);
|
||||
modesSendBeastOutput(mm);
|
||||
modesSendRawOutput(mm);
|
||||
}
|
||||
|
||||
if (!is_mlat || Modes.forward_mlat) {
|
||||
modesSendBeastOutput(mm);
|
||||
}
|
||||
}
|
||||
//
|
||||
//=========================================================================
|
||||
|
|
Loading…
Reference in a new issue