From 7b4987abc3e2b33d395e6139e70818ec7124cf3c Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Thu, 4 Dec 2014 16:46:51 +0100 Subject: [PATCH] Runmode: handle value 'auto' Auto now selects the default runmode for the capture method. --- src/runmodes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runmodes.c b/src/runmodes.c index 166e627add..4f658ce56e 100644 --- a/src/runmodes.c +++ b/src/runmodes.c @@ -272,7 +272,7 @@ void RunModeDispatch(int runmode, const char *custom_mode, DetectEngineCtx *de_c } } - if (custom_mode == NULL) { + if (custom_mode == NULL || strcmp(custom_mode, "auto") == 0) { switch (runmode) { case RUNMODE_PCAP_DEV: custom_mode = RunModeIdsGetDefaultMode(); -- 2.47.3