]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
Improve 'host-mode' info message
authorVictor Julien <victor@inliniac.net>
Thu, 3 Oct 2013 07:58:06 +0000 (09:58 +0200)
committerVictor Julien <victor@inliniac.net>
Thu, 3 Oct 2013 07:58:06 +0000 (09:58 +0200)
src/suricata.c

index b2219eb5ff9aa9a829f1bc68e2a1641a18698db0..5f42bda290a9bb7af3511f0dd9eea7c4bb2ca9ea 100644 (file)
@@ -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;