-preping arm for test by LRN
authorChristian Grothoff <christian@grothoff.org>
Tue, 6 Dec 2011 13:56:42 +0000 (13:56 +0000)
committerChristian Grothoff <christian@grothoff.org>
Tue, 6 Dec 2011 13:56:42 +0000 (13:56 +0000)
src/arm/gnunet-service-arm_interceptor.c

index 021baa67391c2ab1152b0b28a2d0bc947585c3a9..c5a5fa56bbbc1b9e65358417a80b896842d12fd7 100644 (file)
@@ -989,14 +989,15 @@ acceptConnection (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
     return;
   GNUNET_CONTAINER_DLL_remove (serviceListeningInfoList_head,
                                serviceListeningInfoList_tail, sli);
-  use_lsocks = GNUNET_NO;
-  if (GNUNET_YES ==
-      GNUNET_CONFIGURATION_have_value (cfg, sli->serviceName,
-                                       "DISABLE_SOCKET_FORWARDING"))
-    use_lsocks =
-        GNUNET_CONFIGURATION_get_value_yesno (cfg, sli->serviceName,
-                                              "DISABLE_SOCKET_FORWARDING");
-  if (GNUNET_NO != use_lsocks)
+  use_lsocks = GNUNET_YES;
+  if ((GNUNET_YES ==
+       GNUNET_CONFIGURATION_have_value (cfg, "arm",
+                                       "ENABLE_INTERCEPTOR")) &&
+      (GNUNET_YES ==
+       GNUNET_CONFIGURATION_get_value_yesno (cfg, "arm",
+                                            "ENABLE_INTERCEPTOR")) )
+    use_lsocks = GNUNET_NO;
+  if (GNUNET_YES != use_lsocks)
   {
     accept_and_forward (sli);
     return;