Runmode: handle value 'auto'

Auto now selects the default runmode for the capture method.
pull/1237/head
Victor Julien 10 years ago
parent 234d18ab68
commit 7b4987abc3

@ -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();

Loading…
Cancel
Save