(no commit message)
authorMatthias Wachs <wachs@net.in.tum.de>
Fri, 7 Oct 2011 11:28:19 +0000 (11:28 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Fri, 7 Oct 2011 11:28:19 +0000 (11:28 +0000)
src/transport/plugin_transport_http.c

index 656f49c0689b2dbdd3974da3e5d414369679d8a9..aa4465911155d15140dd1a97eeada44adf11f1c2 100644 (file)
@@ -797,16 +797,17 @@ http_check_ipv6 (struct Plugin *plugin)
       }
       GNUNET_log_from (GNUNET_ERROR_TYPE_INFO, plugin->name,
                   _
-                  ("Disabling IPv6 since it is not supported on this system\n"));
+                  ("Disabling IPv6 since it is not supported on this system!\n"));
       plugin->ipv6 = GNUNET_NO;
     }
     else
     {
-      GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, plugin->name,
-                  _("Enabling IPv6 on this system\n"));
       GNUNET_break (GNUNET_OK == GNUNET_NETWORK_socket_close (desc));
       desc = NULL;
     }
+
+  GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, plugin->name,
+              "Testing IPv6 on this system: %s\n", (plugin->ipv6 == GNUNET_YES) ? "successful" : "failed");
   }
 }
 
@@ -1203,9 +1204,6 @@ LIBGNUNET_PLUGIN_TRANSPORT_INIT (void *cls)
   plugin->protocol = "http";
 #endif
   /* Configure plugin from configuration */
-
-  http_check_ipv6 (plugin);
-
   res = configure_plugin (plugin);
   if (res == GNUNET_SYSERR)
   {
@@ -1216,6 +1214,9 @@ LIBGNUNET_PLUGIN_TRANSPORT_INIT (void *cls)
     return NULL;
   }
 
+  /* checking IPv6 support */
+  http_check_ipv6 (plugin);
+
   /* Start client */
   res = client_start (plugin);
   if (res == GNUNET_SYSERR)