hep: disable HEP listen during offline capture mode

This commit is contained in:
Kaian 2023-02-24 10:29:39 +01:00
parent b1cb6467df
commit 6aa93f242e
1 changed files with 9 additions and 2 deletions

View File

@ -361,13 +361,20 @@ main(int argc, char* argv[])
capture_init(limit, rtp_capture, rotate, pcap_buffer_size);
#ifdef USE_EEP
// Disable HEP listen when input files are specified in command line, otherwise online and offline packets
// will be mixed, and it will be confusing
if (vector_count(infiles) != 0) {
setting_set_value(SETTING_EEP_LISTEN, SETTING_OFF);
}
// Initialize EEP if enabled
capture_eep_init();
#endif
// If no device or files has been specified in command line, use default
if (capture_sources_count() == 0 &&
vector_count(indevices) == 0 && vector_count(infiles) == 0) {
if (capture_sources_count() == 0
&& vector_count(indevices) == 0
&& vector_count(infiles) == 0) {
token = strdup(device);
token = strtok(token, ",");
while (token) {