Smallers steps to keep plugin running
[oweals/gnunet.git] / src / arm / arm_api.c
index 2d7ac931c427f6771032da4875379f00b137354d..66747a624acde3d7190926e1044ad00df255301d 100644 (file)
@@ -434,12 +434,16 @@ arm_service_report (void *cls,
       GNUNET_free (lopostfix);
       return;
     }
-  if ((GNUNET_YES == GNUNET_CONFIGURATION_have_value (cfg,
+  if ((GNUNET_YES == GNUNET_CONFIGURATION_have_value (pos->h->cfg,
                                                       "TESTING",
                                                       "WEAKRANDOM")) &&
-      (GNUNET_YES == GNUNET_CONFIGURATION_get_value_yesno (cfg,
+      (GNUNET_YES == GNUNET_CONFIGURATION_get_value_yesno (pos->h->cfg,
                                                            "TESTING",
-                                                           "WEAKRANDOM")))
+                                                           "WEAKRANDOM")) &&
+      (GNUNET_NO == GNUNET_CONFIGURATION_have_value (pos->h->cfg,
+                                                     "TESTING",
+                                                     "HOSTFILE")) /* Means we are ONLY running locally */
+                                                           )
     {
       /* we're clearly running a test, don't daemonize */
       pid = do_start_process (NULL,