eve: support pcap_filename for unix socket mode

Bug #3390.
pull/4436/head
Victor Julien 6 years ago
parent fccdb1c642
commit eceb7dcba4

@ -1055,7 +1055,8 @@ OutputInitResult OutputJsonInitCtx(ConfNode *conf)
const char *pcapfile_s = ConfNodeLookupChildValue(conf, "pcap-file");
if (pcapfile_s != NULL && ConfValIsTrue(pcapfile_s)) {
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;

Loading…
Cancel
Save