|
|
@ -1055,7 +1055,8 @@ OutputInitResult OutputJsonInitCtx(ConfNode *conf)
|
|
|
|
const char *pcapfile_s = ConfNodeLookupChildValue(conf, "pcap-file");
|
|
|
|
const char *pcapfile_s = ConfNodeLookupChildValue(conf, "pcap-file");
|
|
|
|
if (pcapfile_s != NULL && ConfValIsTrue(pcapfile_s)) {
|
|
|
|
if (pcapfile_s != NULL && ConfValIsTrue(pcapfile_s)) {
|
|
|
|
json_ctx->file_ctx->is_pcap_offline =
|
|
|
|
json_ctx->file_ctx->is_pcap_offline =
|
|
|
|
(RunmodeGetCurrent() == RUNMODE_PCAP_FILE);
|
|
|
|
(RunmodeGetCurrent() == RUNMODE_PCAP_FILE ||
|
|
|
|
|
|
|
|
RunmodeGetCurrent() == RUNMODE_UNIX_SOCKET);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
json_ctx->file_ctx->type = json_ctx->json_out;
|
|
|
|
json_ctx->file_ctx->type = json_ctx->json_out;
|
|
|
|