From 8d6bca72f7a6b35deb366e5e0e28c3ee4df080ec Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Thu, 3 Oct 2013 09:58:06 +0200 Subject: [PATCH] Improve 'host-mode' info message --- src/suricata.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/suricata.c b/src/suricata.c index b2219eb5ff..5f42bda290 100644 --- a/src/suricata.c +++ b/src/suricata.c @@ -1778,7 +1778,7 @@ static int PostConfLoadedSetup(SCInstance *suri) } else if (!strcmp(hostmode, "sniffer-only")) { host_mode = SURI_HOST_IS_SNIFFER_ONLY; } else { - if (strcmp(hostmode, "auto")) { + if (strcmp(hostmode, "auto") != 0) { WarnInvalidConfEntry("host-mode", "%s", "auto"); } if (IS_ENGINE_MODE_IPS(engine_mode)) { @@ -1790,12 +1790,12 @@ static int PostConfLoadedSetup(SCInstance *suri) } else { if (IS_ENGINE_MODE_IPS(engine_mode)) { host_mode = SURI_HOST_IS_ROUTER; - SCLogInfo("No 'host-mode': suricata in IPS mode, so" - "automatic setting to 'router'"); + SCLogInfo("No 'host-mode': suricata is in IPS mode, using " + "default setting 'router'"); } else { host_mode = SURI_HOST_IS_SNIFFER_ONLY; - SCLogInfo("No 'host-mode': suricata in IDS mode, so" - "automatic setting to 'sniffer-only'"); + SCLogInfo("No 'host-mode': suricata is in IDS mode, using " + "default setting 'sniffer-only'"); } } return TM_ECODE_OK; -- 2.47.3