diff --git a/readsb.c b/readsb.c index 8ccd8872..9b52f2a9 100644 --- a/readsb.c +++ b/readsb.c @@ -1950,6 +1950,9 @@ static error_t parse_opt(int key, char *arg, struct argp_state *state) { if (strcasecmp(token[0], "disableAcasJson") == 0) { Modes.enableAcasJson = 0; } + if (strcasecmp(token[0], "enableConnsJson") == 0) { + Modes.enableConnsJson = 1; + } if (strcasecmp(token[0], "provokeSegfault") == 0) { Modes.debug_provoke_segfault = 1; } @@ -2554,6 +2557,8 @@ static void miscStuff(int64_t now) { static int64_t next_clients_json; if (Modes.json_dir && now > next_clients_json) { next_clients_json = now + 10 * SECONDS; + if (Modes.enableConnsJson) { + } if (Modes.netIngest) free(writeJsonToFile(Modes.json_dir, "clients.json", generateClientsJson()).buffer); if (Modes.netReceiverIdJson) diff --git a/readsb.h b/readsb.h index cc37946f..ae72ff28 100644 --- a/readsb.h +++ b/readsb.h @@ -689,6 +689,7 @@ struct _Modes int8_t netReceiverIdPrint; int8_t netReceiverIdJson; int8_t netIngest; + int8_t enableConnsJson; int8_t forward_mlat; // forward beast mlat messages to beast output ports int8_t forward_mlat_sbs; // forward mlat messages to sbs output ports int8_t beast_forward_noforward;