aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_http.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2011-10-07 11:28:19 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2011-10-07 11:28:19 +0000
commit1db2f3fa0df37b092a3fc3fda1e4505c9f25ea2a (patch)
tree7597f41f0adf87a201256bba6a321a0ae3e6e478 /src/transport/plugin_transport_http.c
parente887c4f5ee3bc146ca003aedad709f73321c714b (diff)
downloadgnunet-1db2f3fa0df37b092a3fc3fda1e4505c9f25ea2a.tar.gz
gnunet-1db2f3fa0df37b092a3fc3fda1e4505c9f25ea2a.zip
Diffstat (limited to 'src/transport/plugin_transport_http.c')
-rw-r--r--src/transport/plugin_transport_http.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/transport/plugin_transport_http.c b/src/transport/plugin_transport_http.c
index 656f49c06..aa4465911 100644
--- a/src/transport/plugin_transport_http.c
+++ b/src/transport/plugin_transport_http.c
@@ -797,16 +797,17 @@ http_check_ipv6 (struct Plugin *plugin)
797 } 797 }
798 GNUNET_log_from (GNUNET_ERROR_TYPE_INFO, plugin->name, 798 GNUNET_log_from (GNUNET_ERROR_TYPE_INFO, plugin->name,
799 _ 799 _
800 ("Disabling IPv6 since it is not supported on this system\n")); 800 ("Disabling IPv6 since it is not supported on this system!\n"));
801 plugin->ipv6 = GNUNET_NO; 801 plugin->ipv6 = GNUNET_NO;
802 } 802 }
803 else 803 else
804 { 804 {
805 GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, plugin->name,
806 _("Enabling IPv6 on this system\n"));
807 GNUNET_break (GNUNET_OK == GNUNET_NETWORK_socket_close (desc)); 805 GNUNET_break (GNUNET_OK == GNUNET_NETWORK_socket_close (desc));
808 desc = NULL; 806 desc = NULL;
809 } 807 }
808
809 GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, plugin->name,
810 "Testing IPv6 on this system: %s\n", (plugin->ipv6 == GNUNET_YES) ? "successful" : "failed");
810 } 811 }
811} 812}
812 813
@@ -1203,9 +1204,6 @@ LIBGNUNET_PLUGIN_TRANSPORT_INIT (void *cls)
1203 plugin->protocol = "http"; 1204 plugin->protocol = "http";
1204#endif 1205#endif
1205 /* Configure plugin from configuration */ 1206 /* Configure plugin from configuration */
1206
1207 http_check_ipv6 (plugin);
1208
1209 res = configure_plugin (plugin); 1207 res = configure_plugin (plugin);
1210 if (res == GNUNET_SYSERR) 1208 if (res == GNUNET_SYSERR)
1211 { 1209 {
@@ -1216,6 +1214,9 @@ LIBGNUNET_PLUGIN_TRANSPORT_INIT (void *cls)
1216 return NULL; 1214 return NULL;
1217 } 1215 }
1218 1216
1217 /* checking IPv6 support */
1218 http_check_ipv6 (plugin);
1219
1219 /* Start client */ 1220 /* Start client */
1220 res = client_start (plugin); 1221 res = client_start (plugin);
1221 if (res == GNUNET_SYSERR) 1222 if (res == GNUNET_SYSERR)